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 Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Action Classes in one FormBean

 
Dennis Laydia
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all!
I'm just curious if it is allowed to assign one form bean to multiple action classes. Or multiple form beans to one action class. TIA.
 
Darryl A. J. Staflund
Ranch Hand
Posts: 310
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
It is indeed possible to use one form bean in two or more actions -- just make sure the 'name' attribute of the relevat actions refer to the same form bean.
It is not possible to associate two or more form beans with a single action. The 'name' attribute of the action only allows a single form bean name.
Darryl
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic