How to get the original request url from a servlet/jsp after multiple servlet forwards

前端 未结 6 733

I am working on a cruise booking app using struts/tiles that uses multiple internal servlet/jsp forwards to reach the right jsp for display. But, once you r

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-29 03:50

    Same as @Lenny Markus but using the provided constant in the Request Dispatcher class.

    request.getAttribute(RequestDispatcher.FORWARD_REQUEST_URI)
    

提交回复
热议问题