• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL is not changing in address bar

 
NV Krishna
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my struts application, after consecutive actions say Home,Action1 and Action2, I am going back action 'Home'. The page displaying properly but the url in the address bar is not changing to 'home'.

Regards,
Krishna
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally, a struts forward does not cause the URL to change. If you want the URL to change when the forward occurs, specify redirect="true" in the forward definition. Be aware, though, that when you do specify redirect="true", the JSP you forward to will not have access to any objects you've put in the request object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic