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

Check box

francis varkey
Ranch Hand

Joined: Sep 13, 2005
Posts: 169
Respected Sirs,

How to identify ticked checkboxes on a jsp page ?

Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
Use request.getParameterValues() in the next jsp.

RAGHU<br /> <br />"When the going gets tough, the tough get going"
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1323

Originally posted by rao raghu:

return String Array Java Doc Request.getParameterValues

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
francis varkey
Ranch Hand

Joined: Sep 13, 2005
Posts: 169
I am using struts framework
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you have indivicual checkboxes that Are of the true/false variety, and each indicate a separate boolean value, use <html:checkbox>

If you have a group of checkboxes that allow a user to select one or more values from a list of values, use <html:multibox>

Each of these tags will cause Struts to populate an ActionForm bean property that you can read once the page has been submitted.

For more information on these tags, see this link.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Check box
jQuery in Action, 3rd edition