This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URL is not changing in address bar
 
It's not a secret anymore!