| javax.servlet.http.HttpServlet csdl.stackmvc.control.Controller
Controller | public class Controller extends HttpServlet (Code) | | The central servlet that serves as the controller in the MVC pattern
for JSP page dispatching.
author: Philip M. Johnson author: Jitender Miglani (did minor changes) |
doPost | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code) | | Receives all user requests and dispatches to appropriate command class
for processing. The command class is determined by the value of the "CommandName"
parameter in the request; if none is supplied, then "Clear" is assumed.
The command class that is dispatched from this method returns the page that should be
displayed in response to the user request. The command class that is dispatched from
this method is responsible for updating the request object with new attributes required by
the JSP page.
Parameters: request - The servlet request object. Parameters: response - The servlet response object. exception: ServletException - If problems occur with the request or rsponse. exception: IOException - If problems occur during request forwarding. |
init | public void init(ServletConfig conf) throws ServletException(Code) | | The init method that must be overridden in subclasses so that super.init is called.
Parameters: conf - The servlet configuration information. exception: ServletException - If errors occur during initialization. |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|