File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes jsp:forward...... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp:forward......" Watch "jsp:forward......" New topic


Harish Kashyap
Ranch Hand

Joined: Jun 14, 2000
Posts: 118
how can i overcome the url problem when i redirect using jsp:forward the url doesn't change in the browser
Tony Alicea

Joined: Jan 30, 2000
Posts: 3226
That's a feature, not a bug
That's by design and I personally don't consider it a problem.
The browser has not requested a new page so how can it have a different URL displayed?
But response.sendRedirect() will actually tell the browser to request another page and as such will show up in the browser URL box.

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Harish Kashyap
Ranch Hand

Joined: Jun 14, 2000
Posts: 118
hi tony

i came upto jsp:forward only when i couldn't solve the problem the sendRedirect was creating for me.
i posted that topic also
please go through that
I agree. Here's the link:
subject: jsp:forward......
It's not a secret anymore!