Multiple form beans per Action class
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ranjiith_Selvarjan
Posted On:   Thursday, November 8, 2001 04:48 AM

Can I have multiple form beans per action class? If YES how would the struts config file look like?

Re: Multiple form beans per Action class

Posted By:   Ted_Husted  
Posted On:   Friday, November 9, 2001 08:33 AM

Not as such. The Action.perform() method only
takes a single form bean as a parameter.


You can nest beans. See the

Bean Developers guide
for details, and

Struts-simple

for an example.


Of course, you can always create and populate whatever other beans
you need in the Action. Typically, the ActionForm is just
used to get the data into the Action, and then it is transferred
to more capable beans, with typed data.


HTH - Ted

About | Sitemap | Contact