Martin - et. al. -

> What you are seeing is the correct behaviour.
> Hope this helps.

Thanks for the info - it certainly makes sense, but ultimately you didn't
answer my question, just re-phrased it. ;-)

"What is the getter name for this property?".

So what IS the getter name for this property - "LastName" ?

BTW - Bean introspection feature or not - it could be a hard sell to get
designer folk to write "correct cased properties"... especially if they are
accustomed to using "LastName" and I can't seem to handle that. Makes the
developer guy (me) appear not so smart. <grin>

So what IS the getter name for this property - "LASTNAME" => get???
So what IS the getter name for this property - "lastname" => get???

Thanks! :-)
Timothy

> ----- Original Message -----
> From: "Tim Colson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 06, 2001 12:12 PM
> Subject: Bean Introspection and <bean:write> tag
>
>
> > As per the bean: struts API docs, I've included an "Employee"
> type object
> > into the request scope called "emp".
> >
> > emp can get/set the "mLastName" property using getLastName() and
> > setLastName()
> >
> > However - when I try the following
> >
> > <bean:write name="emp" property="LastName"/>
> >
> > I'm told that there is no "getter" method
> > javax.servlet.ServletException: No getter method for property
> LastName of
> > bean
> >
> > If I make the property initial lower case, it works fine:
> > <bean:write name="emp" property="lastName"/>
> >
> >
> > The Bean Spec Section 8.8 says this about capitalization:
> > So for example, "FooBah" becomes "fooBah"
> > ---
> > So for example, "LastName" becomes "lastName"
> > I tried adding the accessor "getlastName()" to my Employee class - still
> > fails.
> >
> > Property   -> get method    : result
> > -------------------------------------
> > "lastName" -> getLastName() : OK
> > "LastName" -> getLastName() : Fails
> > "LastName" -> getlastName() : Fails
> > "LastName" -> get?????()
> >
> > I searched the archives and read more of the bean spec - but didn't pull
> up
> > anything useful on this. :-(
> >
> > Thanks,
> > Tim
> >
> >
>
>
>

Reply via email to