Save This Page
Home » struts-2.0.11.2-src » example » [javadoc | source]
example
public class: ControllerServlet [javadoc | source]
java.lang.Object
   javax.servlet.GenericServlet
      javax.servlet.http.HttpServlet
         example.ControllerServlet

All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

Direct Known Subclasses:
    GuestbookServlet

This is very very primitive MVC Controller servlet base class, based on example 1. The application specific controller servlet should extend this class.
Method from example.ControllerServlet Summary:
doGet,   doPost,   init
Methods from javax.servlet.http.HttpServlet:
service
Methods from javax.servlet.GenericServlet:
destroy,   getInitParameter,   getInitParameterNames,   getServletConfig,   getServletContext,   getServletInfo,   getServletName,   init,   init,   log,   log,   service
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from example.ControllerServlet Detail:
 protected  void doGet(HttpServletRequest req,
    HttpServletResponse resp) throws IOException, ServletException 
 protected  void doPost(HttpServletRequest req,
    HttpServletResponse resp) throws IOException, ServletException 
 public  void init()