> <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)"

You need another public method called setPs(int i, String[] s) (in
addition to the first). Then you can do
<jsp:setProperty name="db" property="ps"     value="1, <%=sql%>" />

sql must be of type String.
You cannot assign complete arrays (as far as I know).

volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau

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