You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Villegas, Courtney" <Vi...@tri-met.org> on 2002/05/10 19:46:24 UTC

Form Bean vs. State Bean

I have a state bean named addressLookup that has 3 variables (address, city,
zipCode) and setters and getters for all 3 properties.

I am now trying to write my form bean that I can access in my jsp.  I have
imported the addressLookup state bean and am now trying to determine how to
use this.

If I create 3 variables (address, city, zipCode) within the form bean and
new setters and getters, all is dandy.  However, I am trying to figure out
how to reference those variables and properties in my state bean.

Can anyone point me in the right direction?  I looked on the Struts site and
could only find a textual description of the difference between the state
and form beans.  

Thanks
Courtney


RE: Form Bean vs. State Bean

Posted by James Mitchell <jm...@telocity.com>.
Have you looked into the DynaActionForm?

JM

> -----Original Message-----
> From: Villegas, Courtney [mailto:VillegaC@tri-met.org]
> Sent: Friday, May 10, 2002 1:46 PM
> To: 'struts-user@jakarta.apache.org'
> Subject: Form Bean vs. State Bean
>
>
> I have a state bean named addressLookup that has 3 variables
> (address, city,
> zipCode) and setters and getters for all 3 properties.
>
> I am now trying to write my form bean that I can access in my jsp.  I have
> imported the addressLookup state bean and am now trying to
> determine how to
> use this.
>
> If I create 3 variables (address, city, zipCode) within the form bean and
> new setters and getters, all is dandy.  However, I am trying to figure out
> how to reference those variables and properties in my state bean.
>
> Can anyone point me in the right direction?  I looked on the
> Struts site and
> could only find a textual description of the difference between the state
> and form beans.
>
> Thanks
> Courtney
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Form Bean vs. State Bean

Posted by James Mitchell <jm...@telocity.com>.
Have you downloaded the Struts binary and/or source dist?

Have you deployed it correctly on a servlet container such as Tomcat (my
favorite)???

JM

> -----Original Message-----
> From: Villegas, Courtney [mailto:VillegaC@tri-met.org]
> Sent: Friday, May 10, 2002 1:46 PM
> To: 'struts-user@jakarta.apache.org'
> Subject: Form Bean vs. State Bean
>
>
> I have a state bean named addressLookup that has 3 variables
> (address, city,
> zipCode) and setters and getters for all 3 properties.
>
> I am now trying to write my form bean that I can access in my jsp.  I have
> imported the addressLookup state bean and am now trying to
> determine how to
> use this.
>
> If I create 3 variables (address, city, zipCode) within the form bean and
> new setters and getters, all is dandy.  However, I am trying to figure out
> how to reference those variables and properties in my state bean.
>
> Can anyone point me in the right direction?  I looked on the
> Struts site and
> could only find a textual description of the difference between the state
> and form beans.
>
> Thanks
> Courtney
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>