Class java.servlet.http.FormServlet
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.servlet.http.FormServlet

java.lang.Object
   |
   +----java.servlet.GenericServlet
           |
           +----java.servlet.http.HttpServlet
                   |
                   +----java.servlet.http.FormServlet

public class FormServlet
extends HttpServlet
This class implements a convenient servlet that can be extended by other servlets which handle form input. By default, it simply echoes its form input.

Constructor Index

 o FormServlet()

Method Index

 o getServletInfo()
Returns a string containing information about the author, version, and copyright of the servlet.
 o sendResponse(HttpServletResponse, Hashtable)
 o service(HttpServletRequest, HttpServletResponse)
Services a single request from the client.

Constructors

 o FormServlet
  public FormServlet()

Methods

 o service
  public void service(HttpServletRequest req,
                      HttpServletResponse res) throws ServletException, IOException
Services a single request from the client.
Parameters:
req - the servlet request
res - the servlet response
Throws: ServletException
if a servlet exception has occurred
Throws: IOException
if an I/O exception has occurred
Overrides:
service in class HttpServlet
 o sendResponse
  public void sendResponse(HttpServletResponse res,
                           Hashtable hashTable) throws IOException
 o getServletInfo
  public String getServletInfo()
Returns a string containing information about the author, version, and copyright of the servlet.
Overrides:
getServletInfo in class GenericServlet

All Packages  Class Hierarchy  This Package  Previous  Next  Index