java - Getting back to the client page -


in web i'm using servlet server. after have processed request, page made request. how do that?

i have used "response.sendredirect(request.getparameter("url"));" i'm getting blank page instead of page made request.

i appreciate every come.

you use refererhttp header:

public void doget(httpservletrequest request, httpservletresponse response)         throws servletexception, ioexception {   string ref = request.getheader("referer");   response.sendredirect(ref); } 

but keep in mind, refererheader optional , browser clients may not send it.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -