getParameterMap() and deselected checkboxes

K

Ken Clark

I'm processing information from a form in a servlet that consists of a table
of data, each with a checkbox. Some are selected, and others are not. When I
user getParameterMap() or getParameterNames(), I'm only getting data for
those rows that have the checkbox selected (true).
How do I also get the checkboxes that are no selected?
 
D

danharrisandrews

Ken said:
I'm processing information from a form in a servlet that consists of a table
of data, each with a checkbox. Some are selected, and others are not. When I
user getParameterMap() or getParameterNames(), I'm only getting data for
those rows that have the checkbox selected (true).
How do I also get the checkboxes that are no selected?

I recall having a problem with struts and a user unchecked checkbox.
There is some discussion of the problem here:

http://struts.apache.org/1.2.x/faqs/newbie.html (search for unchecked)

You may not be using struts, but this may give you some insight to the
situation. As I recall I needed another workaround and my problem was
not fixed by just the reset method in the ActionForm. Good luck.

Cheers,

Dan Andrews
- - - - - - - - - - - - - - - - - - - - - - - - -
Ansir Development Limited http://www.ansir.ca
- - - - - - - - - - - - - - - - - - - - - - - - -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top