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