File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes setredirect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "setredirect " Watch "setredirect " New topic


divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110
what does forward.setRedirect(true); do in struts ?

SCJP - 5.0
Ankit Garg

Joined: Aug 03, 2008
Posts: 9465

Divya in the future please provide a little more details. Here what is the type of forward is not clear, so it takes some time to figure out that its ActionForward. Anyways checkout the documentation of ActionForward. If you set redirect to true, then the browser will be redirected to the result, otherwise there will be a server side forward using RequestDispatcher...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: setredirect
jQuery in Action, 3rd edition