Hopefully this is something simple :)
I have a jsp that uses a controller servlet to do the
processing. From the servlet, the response is redirected according to the
processing option. After the redirect, the URL displayed on the browser
remains as the servlet URL. I need to have this changed to the proper page
URL.
I am doing a redirect -- the code involved in the redirect
is as follows:
(getServletContext().getRequestDispatcher(NEXT_PAGE)).forward(request,
response);
Before doing the redirect, I set some header values as
follows:
response.setHeader("Location",
response.encodeURL(NEXT_PAGE));
response.setHeader("Content-Location", response.encodeRedirectURL(NEXT_PAGE)); Thanks!
Mike
======================================= Mike Silvers Senior Programmer/Analyst IBM Certified Expert Hainey Business Systems Main Office: (717) 718-9601 ext 237 Branch Office: (410) 397-8739 http://www.hbs-inc.com ======================================= |
- Redirect Question Milan Tucakovic
- Re: Redirect Question Jozef Chocholacek
- Re: Redirect Question Isaac Shabtay
- Re: Redirect Question Marcus Nordlund (QRA)
- Redirect question Matthias Hanel
- Re: Redirect question Mike Silvers
- Re: Redirect question Zerbe John W
- Re: Redirect question Gareth Jones