aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 3222
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......
Similar Threads
Error passing data from jsp to servlet
Can Jsp dispatch request as Servlets
Pass parameters with response.sendRedirect
Anchor in Jsp:forward
Pop up new HTML page in JSP