This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Struts and the fly likes Checkbox functionality using Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Checkbox functionality using Struts" Watch "Checkbox functionality using Struts" New topic

Checkbox functionality using Struts

thomas jacob
Ranch Hand

Joined: May 19, 2005
Posts: 91
Hi All,
I have a datatable (records from database table) displayed to the user using JSP. The user needs a checkbox selectall functionality where in user can select all the records in the datatable on the screen and submit the form for further processing. The checkbox column is shown on the screen but not part of database table. Please suggest how to go about it. A working example will certainly help. I am usin JSP and Struts 1.x.

Surya Kant
Ranch Hand

Joined: Mar 29, 2005
Posts: 104
You have uniquely identify each row by id.& that same id you should give to check box.Whenever you are submitting the form,you should make sure that you are passing selected check box ids.
I agree. Here's the link:
subject: Checkbox functionality using Struts
jQuery in Action, 3rd edition