All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JBMSTours.servlets.OpeningServlet

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----JBMSTours.servlets.OpeningServlet

public class OpeningServlet
extends HttpServlet
A servlet that generates an HTML page with a form with drop-down menus generated by querying the Cities table in the database.

See Also:
GetHotelsForCity

Constructor Index

 o OpeningServlet()

Method Index

 o getServletInfo()
 o handleException(Throwable, HttpServletResponse)
 o init(ServletConfig)
init, starts the servlet.
 o printSQLError(SQLException, HttpServletResponse)
 o sendError(HttpServletResponse, String)
 o sendResp(HttpServletResponse, String)
 o service(HttpServletRequest, HttpServletResponse)
what the servlet does

Constructors

 o OpeningServlet
 public OpeningServlet()

Methods

 o init
 public void init(ServletConfig conf) throws ServletException
init, starts the servlet.

Throws: ServletException
if there is a servlet problem.
Overrides:
init in class GenericServlet
 o service
 public void service(HttpServletRequest req,
                     HttpServletResponse res) throws ServletException, IOException
what the servlet does

Throws: ServletException
if there is a servlet problem.
Throws: IOException
if there is an IO problem
Overrides:
service in class HttpServlet
 o getServletInfo
 public String getServletInfo()
Overrides:
getServletInfo in class GenericServlet
 o handleException
 protected void handleException(Throwable ex,
                                HttpServletResponse res)
 o printSQLError
 protected void printSQLError(SQLException ex,
                              HttpServletResponse res)
 o sendError
 protected void sendError(HttpServletResponse res,
                          String error)
 o sendResp
 protected void sendResp(HttpServletResponse res,
                         String resp)

All Packages  Class Hierarchy  This Package  Previous  Next  Index