All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JBMSTours.servlets.GetHotelsForCity

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

public class GetHotelsForCity
extends HttpServlet
A servlet that presents a table that is generated by a query; this query is setn to the servlet by the OpeningServlet servlet.

See Also:
OpeningServlet

Constructor Index

 o GetHotelsForCity()

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 GetHotelsForCity
 public GetHotelsForCity()

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