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?
danharrisandrews@gmail.com - 22 Sep 2006 19:02 GMT
> 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
- - - - - - - - - - - - - - - - - - - - - - - - -