Hi phil

The property name in your bean should be the same as the parameter name i.e
if your property name in your bean is setUsername your parameter name has to
be username or Username it seems the case of the first alphabet does not
make a difference but the case of the rest of the letters should be the
same.

Tasneem Talawala
JSP Developer
[EMAIL PROTECTED]
www.verchaska.com
Verchaska - Helping your bussiness succeed


----- Original Message -----
From: "Phil Hedley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 16, 2000 4:11 PM
Subject: Help - problem using <jsp:setProperty


> Hi all,
>
> I'm using the following directive in a jsp page
>
>      <jsp:useBean id="fH" class="SambaUsers" scope="session"/>
>      <jsp:setProperty name="fH" property="*"/>
>
> This would NOTcall the set method in my java bean. After hours of code
changing
> I managed to
> get it to work by changing my bean properties and corresponding form names
to
> lowercase,
> where previously I was using mixed case.
>
> Could someone please tell me the correct rules for naming the bean
properties
> and get/set methods.
> I have read various pieces of conflicting literature.. From my own
experience it
>  seems that the safest
> way is to put the bean properties and get/set methods into lowercase, is
this
> correct ?
>
> Many thanks,
> Phil Hedley
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to