struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aadithya Deshpande <>
Subject RE: form-bean and set-property tags
Date Tue, 17 Dec 2002 18:52:27 GMT
Shouldn't there be a difference between set-property and form-property,

Most other places that allow a set-property work as expected.  It seems that
it's not doing it for form-beans.

I was hoping to use <set-property> to configure the (customizable) form.
I don't necessarily want that information stored in the internal map.

Prior to subclassing it as a DynaActionForm, I used ActionForm and still the
property was not being set.
I'm under the impression that <set-property> doesn't actually call the
appropriate accessor methods as  I expected.


-----Original Message-----
From: Justin Ashworth []
Sent: Tuesday, December 17, 2002 1:45 PM
To: Struts Users Mailing List
Subject: Re: form-bean and set-property tags

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:



----- Original Message -----
From: "Aadithya Deshpande" <>
To: <>
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:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message