File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp:forward......" Watch "jsp:forward......" New topic
Author

jsp:forward......

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
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
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
 
wood burning stoves
 
subject: jsp:forward......
 
Similar Threads
Pop up new HTML page in JSP
Pass parameters with response.sendRedirect
Can Jsp dispatch request as Servlets
Anchor in Jsp:forward
Error passing data from jsp to servlet