how must be an indexed property be set with jsp:set property. I've tried with the
following with the reference implementation:
<%! String sql[]={"select * from t_agregaciones where ide_elemento= ?","select *
from t_calidad where ide_elemento= ?","select * from t_conmutador where
ide_elemento= ?"}; %>

<jsp:useBean id="BD" class="BD" scope="application">
 <jsp:setProperty name="BD" property="PS" value=<%= sql %> />
</jsp:useBean>

i've also tried with this:
 <jsp:setProperty name="BD" property="PS" value=sql />

in both cases i get the error:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(Compiled Code)
        at com.sun.jsp.compiler.Main$ClassFileData.(Main.java:135)
        at com.sun.jsp.compiler.Main.getClassFileData(Main.java:164)
        at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:107)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:69)

        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:77)
        at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125)
        at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
        at com.sun.web.core.Context.handleRequest(Context.java:382)
        at com.sun.web.server.ConnectionHandler.run(Compiled Code)

Thanks in advance

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to