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, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to