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

All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

This Servlet does not do anything useful, just prints "Hello World!". The intent is to help you to get started if you want to build your own Controller servlet that uses FreeMarker for the View. For more advanced example, see the 2nd Web application example.
Method from example.HelloServlet Summary:
doGet,   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.HelloServlet Detail:
 protected  void doGet(HttpServletRequest req,
    HttpServletResponse resp) throws IOException, ServletException 
 public  void init()