struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Noble" <andy.no...@data-workshop.com>
Subject Re: Help-Loading 2nd FormBean in same action???Is there an easy way??
Date Mon, 03 Dec 2001 00:04:28 GMT
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 <greg_callaghan@hotmail.com>
To: <struts-user@jakarta.apache.org>
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:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message