This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Multiple checkbox display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple checkbox display" Watch "Multiple checkbox display" New topic

Multiple checkbox display

Dragos Crintea

Joined: May 21, 2008
Posts: 9
Hi all!

I would like to know how can I do a display formating for checkboxes. I have a <c:forEach> loop which returns me 100 checkboxes with the attached name. I would like to be able to display in a row only 4. Then the next row has the next 4 and so on. Until now I did not found any solution for this.

Thank you and any help is much appreciated!

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Here's a brief snippet that demonstrates one way to do this:

[ May 21, 2008: Message edited by: Merrill Higginson ]

Consultant, Sima Solutions
Consider Paul's rocket mass heater.
subject: Multiple checkbox display
Similar Threads
Doubt in checkboxlist
How to find Checkboxes?
how to display Tree Structure and Checkbox Data grid in JSP
Adding a Datatable as a row in another Datatable
providing edit, delete options to a table