    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.

##

SimpleFormServlet()

##

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

##

SimpleFormServlet

     public SimpleFormServlet()

##

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

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

getServletInfo

     public String getServletInfo()

  Simple info about the servlet.

  Overrides:
    getServletInfo in class GenericServlet

    All Examples  This Package