Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

getParameterMap() and deselected checkboxes

Thread view: 
Ken Clark - 22 Sep 2006 17:25 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?
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
- - - - - - - - - - - - - - - - - - - - - - - - -


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.