wood burning stoves 2.0*
The moose likes Struts and the fly likes Multiple Action Classes in one FormBean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple Action Classes in one FormBean" Watch "Multiple Action Classes in one FormBean" New topic

Multiple Action Classes in one FormBean

Dennis Laydia

Joined: Jun 12, 2003
Posts: 18
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

Joined: Oct 06, 2002
Posts: 303
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Multiple Action Classes in one FormBean
Similar Threads
calling multiple action classes from a action class
Multiple Action Forms
struts 1.X Action vs Actionmappings
Is it possible 2 add multiple formbeans in struts XML file