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

Multiple Action Classes in one FormBean

 
Dennis Laydia
Greenhorn
Posts: 18
  • 0
  • 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: 303
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic