java - Refresh adding an extra parameter -
i need refresh webpage, in refresh request want add parameter, have though in like:
<c:url value="currenturl" var="newurl"> <c:param name="newparam" value="newvalue"/> </c:url> <a href="${newurl}">refresh</a>
how can currenturl params (for instance http://localhost:8080/mywebapp?param1=var1¶m2=var2) of request implicit objects of jsp. have though in ${pagecontext.request.requesturl}, returns url of jsp, not request url.
thanks
if jsp has been forwarded, can original request url ${requestscope['javax.servlet.forward.request_uri']}
, original request query string ${requestscope['javax.servlet.forward.query_string']}
.
you can way find overview of "hidden" forward attributes here , here.
Comments
Post a Comment