Re: Bug in struts-logic.tld - equal tag?

2002-05-21 Thread jeff_silva

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:
> 
> 
>Do Something here!
> 
> 
> 
>Do Something here!
> 
> 
> 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:   
For additional commands, e-mail: 




RE: Bug in struts-logic.tld - equal tag?

2002-05-21 Thread Claudio Parnenzini

Are you using the JDK 1.2.1??
If yes move to the JDK 1.3

I solved this issue by this way.

Regards

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : mardi, 21. mai 2002 14:19
À : Struts Users Mailing List
Objet : Re: Bug in struts-logic.tld - equal tag?


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:
>
> 
>Do Something here!
> 
>
> 
>Do Something here!
> 
>
> 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]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Bug in struts-logic.tld - equal tag?

2002-05-21 Thread Nicolas De Loof


I remember such an error reported on this list some weeks ago, the
explanation was that JavaBean spec defines some special behaviour with
upper-case properties.

To build getter method names conforming to this behaviour, BeanUtil looks at
the two first charcacters of a property name and, if uppercases chars are
found, don't "upper-case" the first char :
aDTDFlag => getaDTDFlag() or isaDTDFlag()

when you explicilty type ADTDFlag as property name in your JSP, the getter
method build becomes :
ADTDFlag => getADTDFlag() or isADTDFlag() and it works

So, if this behaviour is define JavaBean spec (I'n not sure about this, can
someone confirm it ?), you could define getters "isaDTDFlag()" to conform to
it.

Nico

>
> > 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:
> >
> > 
> >Do Something here!
> > 
> >
> > 
> >Do Something here!
> > 
> >
> > 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:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Bug in struts-logic.tld - equal tag?

2002-05-21 Thread @Basebeans.com

Subject: Re: Bug in struts-logic.tld - equal tag?
From: "Scott Curtis" <[EMAIL PROTECTED]>
 ===
I wish it were that simple. ;-) I am using JDK 1.3.1_03 and I also get this
behaviour with JDK 1.4. Thanks for your suggestion all the same.

 - scott

"Claudio Parnenzini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Are you using the JDK 1.2.1??
> If yes move to the JDK 1.3
>
> I solved this issue by this way.
>
> Regards
>
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi, 21. mai 2002 14:19
> À : Struts Users Mailing List
> Objet : Re: Bug in struts-logic.tld - equal tag?
>
>
> 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:
> >
> > 
> >Do Something here!
> > 
> >
> > 
> >Do Something here!
> > 
> >
> > 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]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[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]>




Re: Bug in struts-logic.tld - equal tag?

2002-05-21 Thread @Basebeans.com

Subject: Re: Bug in struts-logic.tld - equal tag?
From: "Scott Curtis" <[EMAIL PROTECTED]>
 ===
Nicolas

Thank you for that explanation. I figured it might be something to do with
the JavaBean spec. I would be grateful if someone could point me to the part
in the JavaBean spec that defines these rules so that when I ask the
developers of the IDE I use to amend the getter generation function to
conform to the correct rules, I can have backup and prevent a flame war
about pointless requests to support user specific coding standards. :-)

thanks

 - scott


"Nicolas De Loof" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> I remember such an error reported on this list some weeks ago, the
> explanation was that JavaBean spec defines some special behaviour with
> upper-case properties.
>
> To build getter method names conforming to this behaviour, BeanUtil looks
at
> the two first charcacters of a property name and, if uppercases chars are
> found, don't "upper-case" the first char :
> aDTDFlag => getaDTDFlag() or isaDTDFlag()
>
> when you explicilty type ADTDFlag as property name in your JSP, the getter
> method build becomes :
> ADTDFlag => getADTDFlag() or isADTDFlag() and it works
>
> So, if this behaviour is define JavaBean spec (I'n not sure about this,
can
> someone confirm it ?), you could define getters "isaDTDFlag()" to conform
to
> it.
>
> Nico
>
> >
> > > 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:
> > >
> > > 
> > >Do Something here!
> > > 
> > >
> > > 
> > >Do Something here!
> > > 
> > >
> > > 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]>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[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]>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Bug in struts-logic.tld - equal tag?

2002-05-21 Thread Munchenberg, Jerome (DEH)

If you are using Struts v1.0.2, the code was not implemented for some very
obscure reason, even though the taglib distributed included it! Either write
your own test tag (which is what I did) or upgrade your version of Struts.

Jerome

> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 21 May 2002 23:40
> To: [EMAIL PROTECTED]
> Subject: Re: Bug in struts-logic.tld - equal tag?
> 
> 
> Subject: Re: Bug in struts-logic.tld - equal tag?
> From: "Scott Curtis" <[EMAIL PROTECTED]>
>  ===
> I wish it were that simple. ;-) I am using JDK 1.3.1_03 and I 
> also get this
> behaviour with JDK 1.4. Thanks for your suggestion all the same.
> 
>  - scott
> 
> "Claudio Parnenzini" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Are you using the JDK 1.2.1??
> > If yes move to the JDK 1.3
> >
> > I solved this issue by this way.
> >
> > Regards
> >
> > -Message d'origine-
> > De : [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> > Envoyé : mardi, 21. mai 2002 14:19
> > À : Struts Users Mailing List
> > Objet : Re: Bug in struts-logic.tld - equal tag?
> >
> >
> > 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:
> > >
> > > 
> > >Do Something here!
> > > 
> > >
> > > 
> > >Do Something here!
> > > 
> > >
> > > 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]>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[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]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>