This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getParameterMap and unselected checkboxes

 
Ken Clark
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Ken
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. Parameters for unselected checkboxes are not included in the HTTP request when the browser submits the form.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Bear said, only selected parameters are sent as part of the request. But, since you know those that are selected, you can easily detemine those that are not right?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic