This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes What is fundamental difference between result type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "What is fundamental difference between result type "chain" and result type="redirect action"" Watch "What is fundamental difference between result type "chain" and result type="redirect action"" New topic
Author

What is fundamental difference between result type "chain" and result type="redirect action"

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 203
Please tell me the difference bw chain and redirect action? in which situation which one should be used?
Girish Wakure
Greenhorn

Joined: Apr 14, 2010
Posts: 28
In chain we get request data in next action.
While in redirect action a new request is generated. i.e. no previous request data.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

"Chain" should (almost) never be used. (And the only reason I say "almost" is because there might be rare occurrences where it's okay... but they're rare.)

Redirect does exactly what its name implies; it tells the client to redirect to an action. You'd use it whenever you want to redirect to an action.
 
Have you checked out Aspose?
 
subject: What is fundamental difference between result type "chain" and result type="redirect action"
 
It's not a secret anymore!