File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Chirag Sharma
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Chirag Sharma
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mohana,
its really helpful..

Can you also tell me about this...

<action name="" class="" converter="" >.
i could not understand what converter do??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic