> 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"/>
You don't say what jsp engine you are using, but I have had to
develop for both JRun 3.0 and Tomcat (don't know version) but
I have VERY strange behavior with one
of them regarding case.
I note that property = 'dbUser' is lower case property name
property = 'ShopperRefNo' is upper-case.
Your error message does not say which setter is not being
found but try both capitalizations.
>
> <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
>
---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/
===========================================================================
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