com.interface21.web.servlet.mvc
Class DemoController
java.lang.Object
|
+--com.interface21.web.servlet.mvc.DemoController
- All Implemented Interfaces:
- Controller
- public class DemoController
- extends java.lang.Object
- implements Controller
Simple demonstration of how to implement a controller.
|
Method Summary |
ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the request and return a ModelAndView object which the
DispatcherServlet will render. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENTER_NAME_VIEW
public static final java.lang.String ENTER_NAME_VIEW
INVALID_NAME_VIEW
public static final java.lang.String INVALID_NAME_VIEW
VALID_NAME_VIEW
public static final java.lang.String VALID_NAME_VIEW
DemoController
public DemoController()
handleRequest
public ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
- Description copied from interface:
Controller
- Process the request and return a ModelAndView object which the
DispatcherServlet will render. A null return is not an error.
It indicates that this object completed request processing itself,
thus there is no ModelAndView to render.
- Specified by:
handleRequest in interface Controller
- See Also:
AbstractController.handleRequest(HttpServletRequest, HttpServletResponse)
Rod Johnson and Spring contributors 2001-2003.