Class EventInitialize
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----EventInitialize
- public class EventInitialize
- extends HttpServlet
This servlet will ask the admin for information about the hotels, programs and events.
-
EventInitialize()
-
-
doGet(HttpServletRequest, HttpServletResponse)
- This function accepts as input the no of hotels, events, programs and affiliations
and generates a form for accepting information.
-
doPost(HttpServletRequest, HttpServletResponse)
- This function accepts informtion from the form generated by the doGet function and inserts
into the database.
-
init(ServletConfig)
- Initialize the servlet
EventInitialize
public EventInitialize()
init
public void init(ServletConfig servletconfig) throws ServletException
- Initialize the servlet
- Parameters:
- ServletConfig - servletcofig
- Overrides:
- init in class GenericServlet
doGet
public void doGet(HttpServletRequest httpservletrequest,
HttpServletResponse httpservletresponse) throws ServletException, IOException
- This function accepts as input the no of hotels, events, programs and affiliations
and generates a form for accepting information.
- Parameters:
- HttpServletRequest - httpservletrequest
- HttpServletResponse - httpservletresponse
- Overrides:
- doGet in class HttpServlet
doPost
public void doPost(HttpServletRequest httpservletrequest,
HttpServletResponse httpservletresponse) throws ServletException, IOException
- This function accepts informtion from the form generated by the doGet function and inserts
into the database.
- Parameters:
- HttpServletRequest - httpservletrequest
- HttpServletResponse - httpservletresponse
- Overrides:
- doPost in class HttpServlet