struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Ashworth" <justin-str...@ashworth.org>
Subject Re: form-bean and set-property tags
Date Tue, 17 Dec 2002 18:45:25 GMT
The beauty of DynaActionForms is that you don't need getters and setters for
every property and, in fact, if you do have getters and setters for any
property they won't be called...which is what you are seeing.  Read the
information at the following site and it should all be clear:

http://www.onjava.com/pub/a/onjava/pub/a/2002/11/06/struts1.html?page=2

HTH,

Justin

----- Original Message -----
From: "Aadithya Deshpande" <aadi@clubmom-inc.com>
To: <struts-user@jakarta.apache.org>
Sent: Tuesday, December 17, 2002 1:40 PM
Subject: form-bean and set-property tags


> Hi,
>
> I have a question regarding form-bean and set-property tags that I hope
> someone can answer.
> I've looked on the mailing list archives and the faq to no avail.
>
> I have a form bean specified in my struts-config file as such:
>
> <form-bean name="customListForm"
> type="com.clubmom.MyCustomListForm">
> <set-property property="size" value="5"/>
> </form-bean>
>
> According to the DTD spec, that is considered valid xml.
>
> MyCustomList form is subclassed from DynaActionForm.
> and it has a setSize() and getSize() method, but it doesn't seem to be
> called.
>
> How can I read in the property size?
>
> Thanks for any help,
>
> Aadi
>
>


--
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