This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

change url after request dispatcher forward  RSS feed

 
Bug Menot
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a clear understanding of the difference between RequestDispatcher.forward(request, response) and HttpServletResponse.sendRedirect(...). I was just wondering however, if it is possible to change the URL (on the address bar) after a RequestDispatcher.getRequestDispatcher("/someJSP").forward(...) to "http://host/app/someJSP" ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65828
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. As far as the browser is concerned, it's all a single request to the original URL.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!