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 referer
http header:
public void doget(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception { string ref = request.getheader("referer"); response.sendredirect(ref); }
but keep in mind, referer
header optional , browser clients may not send it.
Comments
Post a Comment