File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Using html:checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using html:checkbox" Watch "Using html:checkbox" New topic

Using html:checkbox

amitesh kumar
Ranch Hand

Joined: Aug 01, 2006
Posts: 50

Please someone explain me how to use html:checkbox??

I have a requirement where I have to provide checkboxes for each of the records shown in list view. Now when submit button is pressed only those records that were selected should be populated in the new similar screen.

1 P0 2006 9 BA0 0.0 ADVICED
2 P1 2006 9 BA1 100.0 ADVICED
3 P2 2006 9 BA2 200.0 ADVICED
4 P3 2006 9 BA3 300.0 ADVICED
5 P4 2006 9 BA4 400.0 ADVICED
6 P5 2006 9 BA5 500.0 ADVICED
7 P6 2006 9 BA6 600.0 ADVICED

In the quoted text i have tried to illustrate the problem. In this list the S.No. (i.e. 1,2,3 ....) has to be replaced by checkboxes. Now if one selects say record no. 1,2,4,6 and then clicks on submit button then only these four records should be populated on the next screen which is very similar to this screen.

Thanks in advance!!!

A knibbs
Ranch Hand

Joined: Aug 23, 2006
Posts: 158
I am going to be working on something similar, and believe that you should start looking at the following page.

Hopefully we can help each other out as we go along.

Also others in here will most likely be able to give you invaluable advice so hope one of them replies to you.
I agree. Here's the link:
subject: Using html:checkbox
It's not a secret anymore!