It's not a secret anymore!
The moose likes Struts and the fly likes Two dimensional check box array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Two dimensional check box array" Watch "Two dimensional check box array" New topic

Two dimensional check box array

Muthukrishnan Manoharan
Ranch Hand

Joined: Aug 27, 2008
Posts: 91


I have a requirement where in I would have different number of checkboxes under different sections. And the number of sections is also dynamic.
For example

Section 1
Section 2
Section 3
Section n

I am using org.apache.struts.action.DynaActionForm for form bean. I tried using

but doesnt seem to accept such a type of multidimensional string. Please help me out how to handle such a case. I am using struts 1.2.9
I went through indexed properties, but I am puzzled how to use it without a two dimensional array in this case.
I agree. Here's the link:
subject: Two dimensional check box array
It's not a secret anymore!