Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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: 314
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