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

Ted Husted

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

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact