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