This is the "two starting caps" rule.  I don't know exactly how this translates, as I 
try to avoid this situation.  Change your property name (in both places) so that the 
second character is NOT a capital.  I believe this will solve this problem, at least 
that part.

> -----Original Message-----
> From: Jyothi Panduranga
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: org.apache.jasper.JasperException: No getter method for
> property appauth.aAuthLevel of bean element
> 
> 
> Hi,
> 
>   I have been getting this error when I try to access a 
> property.  I have
> both getter and setter properties defined in the bean. Both 
> deals with the
> variable of same type.  Eg., I have this defined in my bean.
> 
>     /**
>      * Sets the value of field 'aAuthLevel'.
>      *
>      * @param aAuthLevel the value of field 'aAuthLevel'.
>     **/
>     public void setAAuthLevel(java.lang.String aAuthLevel)
>     {
>         this._aAuthLevel = aAuthLevel;
>     }
> 
>    /**
>      * gets the value of field 'aAuthLevel'.
>      *
>      *
>     **/
>     public String getAAuthLevel()
>     {
>         return this._aAuthLevel;
>     }
> 
> Here is the part of my JSP sniplet which calls the property
> 
>                 <td>
>                      <bean:write name="element"
> property="appauth.aAuthLevel" />
>                 </td>
> 
> I get this following error.
> 
> org.apache.jasper.JasperException: No getter method for property
> appauth.aAuthLevel of bean element
> 
> However, If I change the name of the getter and setter properties to
> getAuthLevel/setAuthLevel and JSP according do that(appauth.authLevel
> instead of appauth.aAuthLevel), then everything works fine.
> 
> I want to know if this is a bug in JSP or struts.  I use 
> Tomcat 4.1.12.
> Any insight would be helpful.
> 
> Thanks in advance,
> Jyothi
> 
> 
> --
> 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]>

Reply via email to