A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
What is fundamental difference between result type "chain" and result type="redirect action"
Joined: Aug 03, 2008
Apr 21, 2010 03:21:58
Please tell me the difference bw chain and redirect action? in which situation which one should be used?
Joined: Apr 14, 2010
Apr 21, 2010 03:31:04
In chain we get request data in next action.
While in redirect action a new request is generated. i.e. no previous request data.
Joined: Sep 29, 2008
Apr 26, 2010 07:12:11
"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.
I agree. Here's the link:
subject: What is fundamental difference between result type "chain" and result type="redirect action"
Forwarding data struts.xml
Result (dispatch) in Struts2
Tags in struts2
Error while forwarding from struts.xml
dispatch and redirect-action
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014