Ok, I now have this in my ActionForm class

private String[] selectedItems = {"UPS"};
        private String[] items = {"UPS", "FedEx", "Airborne"};
        public String[] getSelectedItems()
        {
                return this.selectedItems;
        }
        public void setSelectedItems(String[] selectedItems)
        {
                this.selectedItems = selectedItems;
        }


and this in my jsp page...


<logic:iterate id="item" property="items">
<html:multibox property="selectedItems">
<bean:write name="item"/>
</html:multibox>
<bean:write name="item"/><br>
</logic:iterate>


I get this error...

org.apache.jasper.JasperException
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)

.........


root cause

java.lang.NullPointerException



If I take the tags out of the jsp page, it works fine, which means something
within the tags process is throwing the exception, but I can't get to the
bottom of it.  Can someone please point me in the right direction of
debuggin this.

Thanks.

Ilya

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to