• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how checkbox works in servlets?

 
kuni patel
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i get work with checkboxes in servlet.if i use checkbox in one servlet then how can i retrive those selected items in another servlet?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to find a good tutorial/reference on HTML forms and the input items that can appear in them.
An INPUT of type="checkbox" that has a name="myname" will create a request parameter "myname" with value="on" if it has been checked.
Bill
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This chapter from "Core Servlets and Java Server Pages" covers all the HTML form elements from a servlet programmer's perspective:

http://csajsp-chapters.corewebprogramming.com/CSAJSP-Chapter16.pdf
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic