Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 44087 invoked from network); 17 Dec 2002 18:53:17 -0000 Received: from exchange.sun.com (HELO nagoya.betaversion.org) (192.18.33.10) by daedalus.apache.org with SMTP; 17 Dec 2002 18:53:17 -0000 Received: (qmail 4571 invoked by uid 97); 17 Dec 2002 18:53:45 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 4408 invoked by uid 97); 17 Dec 2002 18:53:44 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 4331 invoked by uid 98); 17 Dec 2002 18:53:43 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <80C5610EF23BD411935200508B5C35EB027D4E34@cmiechange> From: Aadithya Deshpande To: 'Struts Users Mailing List' Subject: RE: form-bean and set-property tags Date: Tue, 17 Dec 2002 13:52:27 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2A5FD.71E5CDF0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C2A5FD.71E5CDF0 Content-Type: text/plain; charset="iso-8859-1" Shouldn't there be a difference between set-property and form-property, however? 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 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 doesn't actually call the appropriate accessor methods as I expected. -a -----Original Message----- From: Justin Ashworth [mailto:justin-struts@ashworth.org] 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: http://www.onjava.com/pub/a/onjava/pub/a/2002/11/06/struts1.html?page=2 HTH, Justin ----- 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: > > type="com.clubmom.MyCustomListForm"> > > > > 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: ------_=_NextPart_001_01C2A5FD.71E5CDF0--