File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes URL is not changing in address bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "URL is not changing in address bar" Watch "URL is not changing in address bar" New topic
Author

URL is not changing in address bar

NV Krishna
Greenhorn

Joined: Mar 23, 2005
Posts: 14
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: URL is not changing in address bar