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&param2=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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -