It's not a secret anymore!*
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


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

Using html:checkbox

amitesh kumar
Ranch Hand

Joined: Aug 01, 2006
Posts: 50
Hi,

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!!!

Amitesh
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.
http://husted.com/struts/tips/007.html

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: http://aspose.com/file-tools
 
subject: Using html:checkbox
 
Similar Threads
Struts - Check boxes problem
Maintaining lists of beans in a page
Array of checkboxes
When to use a JSP page?
A diffrent type of checkbox problem