net.server.servlets
Class FormProcessorServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.server.servlets.FormProcessorServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class FormProcessorServlet
- extends javax.servlet.http.HttpServlet
The FormProcessorServlet class handles the processing of
the HTML pages which prompt the user for input for the Form
C student evaluation form.
- Version:
- 1.00
- Author:
- Robert Lysik
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method handles the coordination of HTML page
display and form processing using parameters
extracted from the request object which is passed in
as a parameter. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method handles the coordination of HTML page
display and form processing using parameters
extracted from the request object which is passed in
as a parameter. |
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, init, log, log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormProcessorServlet
public FormProcessorServlet()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- This method handles the coordination of HTML page
display and form processing using parameters
extracted from the request object which is passed in
as a parameter. The value of the status parameter determines
which HTML page to display next.
The initial state, where status is null, involves display of
a user vealidation form which prompts the user for their
user id and password.
If the user is authorized, they are then prompted for the
course and section for which they wish to enter data for Form C.
The Form C page is then displayed allowing the user to enter the
student assessment values for each category and student in the class.
A confirmation page is then displayed to the user, following which, the
data is either written to file, or written to a database.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
java.io.IOException
javax.servlet.ServletException
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- This method handles the coordination of HTML page
display and form processing using parameters
extracted from the request object which is passed in
as a parameter. The value of the status parameter determines
which HTML page to display next. The doPost method is used
for processing of the users id an password information
The initial state, where status is null, involves display of
a user validation form which prompts the user for their
user id and password.
If the user is authorized, they are then prompted for the
course and section for which they wish to enter data for Form C.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
java.io.IOException
javax.servlet.ServletException