thanks for your answer,
now i'm getting the same error with an indexed property:
<jsp:useBean id="db" class="BD" scope="application">
<jsp:setProperty name="db" property="ps" value="<%=sql%>" />
</jsp:useBean>
in my bean i've got a method called "public void setPs(String [] sql)"
in the online sintax reference
(http://java.sun.com/products/jsp/tags/syntaxref.fm13.html#8856 )it is said:
property="propertyName" value="{ string | <%=expression%> }"
If the value is an expression, the data types of the property and value must
match. If the property is indexed, the value must be an array of the same data type
as the property.
thanks again
"Craig R. McClanahan" wrote:
> Antonio S�nchez Esguevillas wrote:
>
> > with jswdk1.0 i get the following error:
> > com.sun.jsp.JspException: setProperty(db): Cant Find the method for
> > setting {1}
> > the jsp page looks like:
> > <jsp:useBean id="db" class="BD" scope="application">
> > <jsp:setProperty name="db" property="Conn" value="true"/>
> > </jsp:useBean>
> > and i have a "public void setConn(String)" method in the bean BD.
> > thanks in advance
> >
>
> The normal JavaBeans convention for property names is that they start with a lower
> case letter, which is capitalized when you stick "get" or "set" in front of it.
> Try this instead:
>
> <jsp:setProperty name="db" property="conn" value="true" />
>
> and it should call your setConn() method.
>
> Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html