Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:forward......

 
Harish Kashyap
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Harish Kashyap
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic