Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@apache.org Received: (qmail 29282 invoked from network); 8 May 2003 17:56:43 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 May 2003 17:56:43 -0000 Received: (qmail 26804 invoked by uid 97); 8 May 2003 17:58:48 -0000 Delivered-To: qmlist-jakarta-archive-taglibs-user@nagoya.betaversion.org Received: (qmail 26797 invoked from network); 8 May 2003 17:58:47 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 May 2003 17:58:47 -0000 Received: (qmail 29051 invoked by uid 500); 8 May 2003 17:56:40 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 29037 invoked from network); 8 May 2003 17:56:40 -0000 Received: from web10005.mail.yahoo.com (216.136.130.41) by daedalus.apache.org with SMTP; 8 May 2003 17:56:40 -0000 Message-ID: <20030508175644.58270.qmail@web10005.mail.yahoo.com> Received: from [199.29.132.2] by web10005.mail.yahoo.com via HTTP; Thu, 08 May 2003 10:56:44 PDT Date: Thu, 8 May 2003 10:56:44 -0700 (PDT) From: Michael Duffy Subject: RE: Logic:Equal Question. To: Tag Libraries Users List , JohnD@DelWare.com In-Reply-To: <000001c3158a$2c1b4280$986b640a@DELWARE.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thank you for the feedback, John. I won't give out that incorrect advice again. Hearing the right answer would be most appreciated. - MOD --- John De Lello wrote: > OK, I tried your suggestion and added a method > signature of: "public boolean > isHasResults( )" on VWDynaValidatorForm. I get the > same results. > javax.servlet.ServletException: Exception accessing > property hasResults for > bean paymentReviewForm: > java.lang.NoSuchMethodException: Unknown property > 'hasResults' > > Here is the class definition of my form: > > package com.vwks.ing.form; > > import > org.apache.struts.validator.DynaValidatorForm; > > public class VWDynaValidatorForm extends > DynaValidatorForm{ > protected boolean exceededRowLimit = > false; > protected boolean hasResults = > false; > > public boolean isHasResults() { > return hasResults; > } > > public boolean getHasResults() { > return hasResults; > } > > > public void setHasResults(boolean hasResults) { > this.hasResults = hasResults; > } > } > > > > Thank you for the responses and sorry about the > double-post (not sure how > that happened) > John > > > -----Original Message----- > From: Jim Kennedy [mailto:jimk@gigaheads.com] > Sent: Thursday, May 08, 2003 1:35 PM > To: Tag Libraries Users List > Subject: Re: Logic:Equal Question. > > > Michael, You are correct about the Bean Spec, see > below: > > JavaBeans Introspection > Sun Microsystems 55 7/24/97 > Although use of the standard naming patterns is > optional, we strongly > recommend their use as standard naming conventions > are an extremely valuable > documentation technique. > > 8.3 Design Patterns for Properties > > 8.3.1 Simple properties > By default, we use design patterns to locate > properties by looking for > methods of the form: public < PropertyType> get< > PropertyName>(); public > void set< PropertyName>(< PropertyType> a); If we > discover a matching pair > of "get" and "set" > methods that take and return > the same type, then we regard these methods as > defining a read-write > property whose name will be "". We > will use the > "get" method to get the property value > and the > "set" method to set the property > value. The pair of methods > may be located either in the same class or one may > be in a base class and > the other may be in a derived class. If we find only > one of these methods, > then we regard it as defining either a read-only or > a writeonly property > called "" By default we assume that > properties are neither > bound nor constrained (see Section 7). So a simple > read-write property "foo" > might be represented by a pair of > methods: > public Wombat getFoo(); > public void setFoo(Wombat w); > > 8.3.2 Boolean properties > In addition, for boolean properties, we allow a > getter method to match the > pattern: > public boolean is< PropertyName>(); > This "is" method may be provided > instead of a > "get" method, or it may be provided in > addition to a > "get" method. In either case, if the > "is" method > is present for a boolean property then we will use > the "is" > method to read the property value. An example > boolean property might be: > public boolean isMarsupial(); public void > setMarsupial(boolean m); > > 8.3.3 Indexed properties > If we find a property whose type is an array > "[]", then we > also look for methods of the form: public < > PropertyElement> get< > PropertyName>(int a); public void set< > PropertyName>(int a, < > PropertyElement> b); If we find either kind of > pattern then we assume that > "" is an indexed property and that > these methods can be used > to read and/or write an indexed value. Thus an > indexed property "foo" might > be represented by four accessor > methods: > > Jim Kennedy > IT Consultant > Mobile Phone: 813-503-1484 > ----------------------------------------------------- > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > taglibs-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > taglibs-user-help@jakarta.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > taglibs-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > taglibs-user-help@jakarta.apache.org > __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org