getHeader « Request « JSP-Servlet Q&A





1. i got the url value using request.getHeader("Referer"), How to get the parameter values?    stackoverflow.com

I need to split out parameters given a URL string. I got the url value using request.getHeader("Referer") e.g.:

string rr=request.getHeader("Referer");
<%= rr %>
i got the url as http://www.sun.com/questions?uid=21&value=gg Now I stored that url ...

3. request.getHeader("Referer")    coderanch.com

My assumption was that originally the OP was using the value of the referrer to switch behavior on the target page. This is not a good way to do this even if the referrer value was reliable since it creates artificial binding between the pages. Now, I assume that the OP is passing an explicit parameter to cause the page to ...