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