I've got this weird behavior also. Jefferson Indrix.net
----- Mensagem Original ----- De: Struts Newsgroup <[EMAIL PROTECTED]> (@Basebeans.com) Data: Terça, Maio 21, 2002 9:10 am Subject: Bug in struts-logic.tld - equal tag? > Subject: Bug in struts-logic.tld - equal tag? > From: "Scott Curtis" <[EMAIL PROTECTED]> > === > Hi, > > This is a difficult one to explain, so bare with me... > > I have a bean class (MyBean) with various getters/setters for the > propertiescontained within it. Two of which are: > > private boolean valid; > public boolean isValid() { return valid; } > > private boolean aDTDFlag; > public boolean isADTDFlag() { return aDTDFlag; } > > I then have a JSP using the struts-logic.tld tag library's equal > tag as > follows: > > <logic:equal name="mybean" property="valid" value="true"> > Do Something here! > </logic:equal> > > <logic:equal name="MyBean" property="aDTDFlag" value="true"> > Do Something here! > </logic:equal> > > When I load this page I get: > > javax.servlet.jsp.JspException: Exception accessing property > aDTDFlag for > bean MyBean: java.lang.NoSuchMethodException: Unknown property > 'aDTDFlag' > The only way to make it work is to reference the "aDTDFlag" > property as > "ADTDFlag" within the logic:equal tag - ie with an uppercase > 'a'?!? The > reference to the "valid" property is fine with a lowercase 'v'? > This isn't > working correctly because the property is named with a lowercase > 'a' and > references to it shouldn't be forced to use an uppercase 'a'. > > Am I correct? If so is this the right place to report this sort of > thing? > thanks > - scott > > > > > -- > To unsubscribe, e-mail: <')" >mailto:struts-user- > [EMAIL PROTECTED]>For additional commands, e-mail: > <')" >mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>