You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by 戴征 <da...@vitstage.co.jp> on 2002/06/12 11:45:51 UTC

"indexed" option does not work with html:checkbox

Hello this is dz

I'm using the html:checkbox tag in an iterate tag. I am trying to set the 
indexed property but I get the following exception 

javax.servlet.jsp.JspException: index
       at com.hp.mwlabs.j2ee.containers.servlet.jsp.AbstractJspPage.getWriteMethodSupport(AbstractJspPage.java:360)
       at com.hp.mwlabs.j2ee.containers.servlet.jsp.AbstractJspPage.setProperty(AbstractJspPage.java:789)
       at secure.JspPage_portal_jsp_Impl._jspService(JspPage_portal_jsp_Impl.java:909)

source:
<logic:iterate id="todo" name="formBean" property="todoList" type="todoClass">
  <html:checkbox name="todo" property="checkValue" value="true" indexed="true"/>
</logic:iterate>

when the form is submit,I want to know which checkbox is selected.
How to do? 
It is hurry ,help me please.

Thanks



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>