admin
Class TableDisplay
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--admin.TableDisplay
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class TableDisplay
- extends javax.servlet.http.HttpServlet
This class is used to display all records from the table selected in PresentMenu
and/or to redirect to the appropriate input handler
It takes the table_name and the operation from PresentMenu
If a list is presented the user can choose which one they want to administer
if the operation is add it redirects to Input
There are several cases:
1. All Requirements (e.g. all tables ending in _REQ) are serviced by Req.java and InputReq.java
a) if it is major or minor req presents major or minor list to choose
b) else
- if Add go to Req
- else - display list to choose and operation on top
2. All Other Tables are Serviced by Input.java
a) if Add - go to Input
b) if Modify/View/Delete
- display all records to choose one to perform the operation on
- See Also:
- Serialized Form
|
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
All get requests are forwarded to doPost() |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method does all the work as described by the class summary
|
void |
init(javax.servlet.ServletConfig config)
Used to initialize the servlet |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableDisplay
public TableDisplay()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Used to initialize the servlet
- Specified by:
init in interface javax.servlet.Servlet- Overrides:
init in class javax.servlet.GenericServlet
javax.servlet.ServletException
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- All get requests are forwarded to doPost()
- Overrides:
doGet in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- This method does all the work as described by the class summary
- Overrides:
doPost in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException