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
-
GetHotelsForCity()
-
-
getServletInfo()
-
-
handleException(Throwable, HttpServletResponse)
-
-
init(ServletConfig)
- init, starts the servlet.
-
printSQLError(SQLException, HttpServletResponse)
-
-
sendError(HttpServletResponse, String)
-
-
sendResp(HttpServletResponse, String)
-
-
service(HttpServletRequest, HttpServletResponse)
- what the servlet does
GetHotelsForCity
public GetHotelsForCity()
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
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
getServletInfo
public String getServletInfo()
- Overrides:
- getServletInfo in class GenericServlet
handleException
protected void handleException(Throwable ex,
HttpServletResponse res)
printSQLError
protected void printSQLError(SQLException ex,
HttpServletResponse res)
sendError
protected void sendError(HttpServletResponse res,
String error)
sendResp
protected void sendResp(HttpServletResponse res,
String resp)
All Packages Class Hierarchy This Package Previous Next Index