Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Address bar does not change when calling a servlet from a servlet  RSS feed

 
Mad Uk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is Action, which is responsible for the authorization. When the account is a call to another through Action:


However the address bar remains unchanged. If I call the jsp, then the address bar changes:


In this case, the single servlet used for all Action.
How to fix the address bar?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A forward will not change the value in the address bar. A forward happens on the server and the browser does not know anything about it. It's the same for any resource, so no different for JSP or a servlet. (not sure why you claim that it's different.)

In any case, why does it need to be "fixed"? the URL bar should show the request URL; forwarding on the server is irrelevant.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!