aspose file tools
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


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "setredirect " Watch "setredirect " New topic
Author

setredirect

divya kundapur
Ranch Hand

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


SCJP - 5.0
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9326
    
  19

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: setredirect