Checkbox value capture in Servlet from JSP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, April 18, 2004 11:45 PM

Hi I have a array/group of CHeckboxes in my JSP, I want to pass this checkbox value to the Servlet check if it's clicked/checked and based on that I want to do some functionalities...I used request.getParameterValues but it's not working atleast I just wanted to check by printing the values of the checkbox sent from JSP...?? What should I do

Re: Checkbox value capture in Servlet from JSP

Posted By:   Eric_Getchell  
Posted On:   Monday, April 19, 2004 04:08 AM

Checkboxes work a little differently than other HTML controls. If the value is unchecked, it will not show up on the HTTP parameter list.



Try checking some boxes and examining what exists in the getParameterNames() method. You should only see the names of the boxes you checked.
About | Sitemap | Contact