On Wed, 4 Jul 2001, Narasimhan, Shyamala wrote:

> hi
> 
> i would like to use two different forms in an action class... kindly advise
> as to how to specify the action mapping
> 

Although it is not possible to have >1 form beans per action *mapping*, it
is definitely possible to have >1 form beans per action *class*.  You
simply have to have more than one mapping that resolves to the same Action
class name.

Note that, in this scenario, Struts will still create a separate instance
of the Action class per mapping.  Therefore, if you want to share data
between them, you'll need to use static variables, or some other
equivalent technique.

> thanks
> 
> shyamala.
> 

Craig McClanahan


Reply via email to