wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp:forward......
 
Similar Threads
Can Jsp dispatch request as Servlets
Pop up new HTML page in JSP
Pass parameters with response.sendRedirect
Anchor in Jsp:forward
Error passing data from jsp to servlet