A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: What is fundamental difference between result type "chain" and result type="redirect action"
Result (dispatch) in Struts2
Tags in struts2
Forwarding data struts.xml
dispatch and redirect-action
Error while forwarding from struts.xml
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014