[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: Two-dimensional checkbox table form
From: Mike Haller <Mike.Haller () Innovations ! de>
Date: 2005-07-29 11:43:07
Message-ID: 42EA164B.5010308 () Innovations ! de
[Download RAW message or body]
Hi,
i've got two nested iterators
<logic:iterate id="user1" name="usernames" indexId="a">
<logic:iterate id="user2" name="usernames" indexId="b">
<html:checkbox name="???" property="???">
</logic:iterate>
</logic:iterate>
How do I populate such a two-dimensional checkbox table?
I tried to manually produce the checkbox tag that it looks like the
following, but this did not work (BeanUtils doesn't recognize and
doesn't seem to know how to store a boolean[][])
<input type="checkbox" name="content[0][0]" checked>
<input type="checkbox" name="content[0][1]">
Hitting the submit button produces:
Exception:
javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:497)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
de.innovations.licenseserver.admingui.BackendSecurityFilter.doFilter(BackendSecurityFilter.java:108)
So, my question is: How do I use a bean with a twodimensional array in a
form?
kind regards
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic