How to get the previous page URL from request in servlet after dispatcher.forward(request, response)

前端 未结 4 1743
借酒劲吻你
借酒劲吻你 2020-12-17 16:18

I\'m using the servlet which redirects me with the help of

dispatcher.forward(request, response);

in the end. But after this I want to get

4条回答
  •  太阳男子
    2020-12-17 16:39

    you can store that url in HttpSession and retrieve it in next servlet when you need.

提交回复
热议问题