Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check box

 
francis varkey
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Respected Sirs,

How to identify ticked checkboxes on a jsp page ?

regards
Francis
 
Rao Raghu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use request.getParameterValues() in the next jsp.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rao raghu:
request.getParameterValues()


return String Array Java Doc Request.getParameterValues
 
francis varkey
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using struts framework
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic