To set all parameters you can use <jsp:setProperty name="<bean name>"
property="*">
----- Original Message -----
From: "Sushil Singh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 5:38 PM
Subject: Bean: Unable to do setProperty
> 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