WEronbg email. Not here please,
----- Original Message -----
From: "Veronique Dupierris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 23, 2000 8:42 PM
Subject: Re: Bean: Unable to do setProperty


> Hi,
>
>    The property ShopperRefNo should use a lowerCase = shopperRefNowhich
will call
> setter and getter method with an Uppercase.
> Concerning the form property (or any property in URL), the same rule is
used.
> <jsp:setProperty name="shiptoBean" property="*" > this will go over all
the
> property passed in the request and, if a setter method exist in the Bean
for the
> property it will call that method ...The property name should start with a
lower
> case and the set Property method with an Upper case.
>
> Hope this help
> Regards
> Veronqiue
>
>
> Sushil Singh a écrit :
>
> > Hi,
> >
> > I am unable to setProperty for a bean, its giving error:
> > com.sun.jsp.JspException: "setProperty(shiptoBean): Cant Find the method
> > for setting {1}"
> >
> > Following is the code snippet:
> > <jsp:setProperty name="shiptoBean" property="dbUser"  value="db2inst1"/>
> >
> > <jsp:setProperty name="shiptoBean" property="ShopperRefNo"
> > value="17338459"/>
> >
> > Bean code is something like this:
> > private String dbUser = "";
> > private String shopper_refno = "";
> > public void   setDbUser(String user)         { dbUser = user; }
> > public String getDbUser()                        { return dbUser; }
> > public void   setShopperRefNo(String shrfno) { shopper_refno = shrfno; }
> >
> > public String getShopperRefNo()              { return shopper_refno; }
> >
> > Also I would like to know how to specify setProperty so that all the set
> > methods of beans should be automatically filled by form parameter or if
> > url is called with paramters.
> >
> > Thanks,
> >
> > Sushil
> >
> >
===========================================================================
> > 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
>

===========================================================================
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