• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

request.getParameterValues() for radio buttons

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I work with a form and I want to display a table which indicates the choices made by the user. I must check check boxes and radio buttons. The following method functions well for the text area:
<tr>
<td align="right">
<B>Name</B>
</td>
<td align="left">
<%request.getParameterValues(Name);%
</td>
</tr>
But i nee to do the same with the radio buton and check boxes.
Can somebody help me?
Thanks
Jeff
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
on the client side create all check box and radio button INPUT html tags with same name.
Then you can use request.getParameter(valueofNameattribute) for Radio button and request.getParameterValues(valueofNameattribute) for checkboxes.
request.getParameterValues returns array of strings, so you can look through to find out the options selected by the user.
reply
    Bookmark Topic Watch Topic
  • New Topic