All Examples  This Package

Class examples.servlets.SimpleFormServlet

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----examples.servlets.SimpleFormServlet

public class SimpleFormServlet
extends HttpServlet
This is an example of a simple FormServlet. It also demonstrates the use of htmlKona tables.


Constructor Index

 o SimpleFormServlet()

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
The doGet method handles the initial invokation of the servlet.
 o doPost(HttpServletRequest, HttpServletResponse)
Responds to the "POST" query from the original form supplied by the goGet() method.
 o getServletInfo()
Simple info about the servlet.

Constructors

 o SimpleFormServlet
 public SimpleFormServlet()

Methods

 o doGet
 public void doGet(HttpServletRequest req,
                   HttpServletResponse res) throws IOException, ServletException
The doGet method handles the initial invokation of the servlet. It responds with a form, that will use the "POST" method to submit data.

Overrides:
doGet in class HttpServlet
 o doPost
 public void doPost(HttpServletRequest req,
                    HttpServletResponse res) throws IOException, ServletException
Responds to the "POST" query from the original form supplied by the goGet() method.

Overrides:
doPost in class HttpServlet
 o getServletInfo
 public String getServletInfo()
Simple info about the servlet.

Overrides:
getServletInfo in class GenericServlet

All Examples  This Package