This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Solved] Pass bean from invocation action to target action in chain type result

 
Xiaoqing Ni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hava an input form in add.jsp, process of the form:
1. ToAddAction invocated and init accountList for display in add.jsp
2. user input data in add.jsp and submit the form
3. AddAction validate the data
4. if step 2 fails then return to input and init the accountList according to the criteria bean in AddAction.

How can I get the criteria bean from AddAction and manipulate it in ToAddAction? Cause the criteria bean contains the prams that will be used to query accountList.

Sorry for my poor english.

add.jsp


ToAddAction


AddAction


struts.xml


 
Xiaoqing Ni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved

I used Chaining Interceptor to copy properties from original action to the target action.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic