After the <jsp:useBean> tag  I would try

<%  db.setPs(sql) %>

Hope this helps,
Abraham

-----Original Message-----
From:   Sanchez Antonio [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, September 13, 1999 1:38 AM
To:     [EMAIL PROTECTED]
Subject:        setProperty & arrays (indexed properties)

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:
<%!String sql[]={"select * from t","select * from t2"};%>
<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)"

reading the online sintax reference it seems indexed properties are supported
(http://java.sun.com/products/jsp/tags/syntaxref.fm13.html#8856 ):
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 in advance

===========================================================================
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

===========================================================================
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

Reply via email to