This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Check box" Watch "Check box" New topic
Author

Check box

francis varkey
Ranch Hand

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

How to identify ticked checkboxes on a jsp page ?

regards
Francis
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: 1321

Originally posted by rao raghu:
request.getParameterValues()


return String Array Java Doc Request.getParameterValues


Saifuddin..
[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.


Merrill
Consultant, Sima Solutions
 
jQuery in Action, 2nd edition
 
subject: Check box