This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes what is the use of result type= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "what is the use of result type="chain"  in struts 2?" Watch "what is the use of result type="chain"  in struts 2?" New topic
Author

what is the use of result type="chain" in struts 2?

Chirag Sharma
Greenhorn

Joined: Jun 27, 2012
Posts: 24
Hi all,

i am little confuse with <action name="" class="" converter="" >.
i could not understand what converter do??

How many of result type we can use in result type ?

Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Struts2 Result Types

Struts2 Result Type Chain

Chain Result
This result invokes an entire other action, complete with it's own interceptor stack and result. In general use just consider an example you want to perform an action immediate after execution your actual action that action need's your previous action data. But in Struts2 once the action execution is done the data is no more available. So in order to carry the data forward we use chain result type for this we need to configure chaining interceptor which will be triggered after the action is performed. But using chain is not good practice.
Chaining Interceptor


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Chirag Sharma
Greenhorn

Joined: Jun 27, 2012
Posts: 24
Thanks Mohana,
its really helpful..

Can you also tell me about this...

<action name="" class="" converter="" >.
i could not understand what converter do??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the use of result type="chain" in struts 2?
 
Similar Threads
BeanUtils converter error
Convert Video into SWF and FLV format
How do I NOT require currency symbol on input, but still display it with convertNumber?
Struts action form properties
Axis2 Unable to parse wsdl