How to get the url of the client

前端 未结 2 1923
一生所求
一生所求 2020-12-21 08:40

I\'m sending the request from Display.jsp to TrialShow.jsp page, but whenever I call ${pageContext.request.requestURL} in TrialShow JSP page, I\'m

2条回答
  •  再見小時候
    2020-12-21 08:58

    Use ${requestScope['javax.servlet.forward.request_uri']}

    EDIT: corrected syntax

    EDIT: This works if you forwarded request to the second jsp (for example, using )

提交回复
热议问题