Based on BalusC answer
You can try these two,
${requestScope['javax.servlet.forward.request_uri']} ${requestScope['javax.servlet.forward.query_string']}
JavaScript approach
Do you mean the URL in the address bar? If so, you can write a JavaScript function to get the parameters, and then change your href .
For example,
<a id="refresh" href="${newUrl}">Refresh</a> ... var url = window.location.href; url += url.split("?").length > 1 ? "&newParam=value" : "?newParam=value"; document.getElementById("refresh").href = url;
This will be much shorter if you use jQuery or PrototypeJS such as the JavaScript framework.
Adele ansari
source share