aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "URL is not changing in address bar" Watch "URL is not changing in address bar" New topic

URL is not changing in address bar

NV Krishna

Joined: Mar 23, 2005
Posts: 14

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'.

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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: URL is not changing in address bar
Similar Threads
Facelets: Clicking on a command link is displaying the URL of the previous request that was sent
HTTP status 404
how one servelet call another servelet with define http method.
problem in frames
how to pass an attribute to a request?