File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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.
It is sorta covered in the JavaRanch Style Guide.
subject: Two dimensional check box array
It's not a secret anymore!