As far as I'm aware, 1 JSP form gets mapped to 1 formbean.

Why would you not have the attributes in the first formbean?

If really necessary,  you could maybe consider have the 1st formbean have
getters and setters which delegate to a second formbean. But would help if
you could explain reason for 2nd formbean.

Andy


----- Original Message -----
From: Greg Callaghan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 02, 2001 11:22 PM
Subject: Help-Loading 2nd FormBean in same action???Is there an easy way??


> Hi,
>
> Does anyone know an easy way to load a 2nd form bean in an action?
>
> That is, the main formbean has already been specified in struts.xml for
that
> action and will load automatically per usual.  If however I have other
> separate hidden form elements in my JSP form which I would like to
auto-load
> into their associated formbean (ie the 2nd form bean) is there a way to
> easily do this in the action in struts.
>
> Eg.  Within Action Class -:
>    FormBean2 formbean2 = LOAD (request, <formbean2 class ref>)
>    (or something like this)
>
>
> Cheers
> Greg
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to