File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple Action Classes in one FormBean" Watch "Multiple Action Classes in one FormBean" New topic
Author

Multiple Action Classes in one FormBean

Dennis Laydia
Greenhorn

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.
Darryl
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple Action Classes in one FormBean