File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how checkbox works in servlets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how checkbox works in servlets?" Watch "how checkbox works in servlets?" New topic
Author

how checkbox works in servlets?

kuni patel
Greenhorn

Joined: Jun 04, 2005
Posts: 7
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?


Thanx
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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


Java Resources at www.wbrogden.com
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how checkbox works in servlets?
 
Similar Threads
Kindly help me with this checkbox issue
JTable
Servlet and ajax
Retaining value of checkbox when returning back from a servlet
how to delete a row from database by selecting it in jsp page using checkbox?