struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Jouravlev" <>
Subject Re: Multiple Forms on one page
Date Fri, 31 Mar 2006 17:34:17 GMT
On 3/31/06, Eric Rank <> wrote:
> Greeting friends,
> I'm looking for a best-practice strategy for what to do when a page has
> multiple forms. My questions:
> 1. Is there a way to specify multiple form beans for one action?


> 2. Assuming there's _not_ a way to specify multiple form beans (only one
> 'name' attribute allowed in the 'action' element), how can I populate
> multiple forms which are associated with distinct form-beans?

You want to populate HTML forms from the beans at render phase?

You can have one large ActionForm for all HTML forms or you can have
an ActionForm per every HTML form, thus every HTML form posts to its
own action mapping. Remember that ActionForm is linked to a mapping in
config file, not to an action class, so you can have one action class
and several mappings.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message