Examples of StandardWrapper


Examples of org.apache.catalina.core.StandardWrapper

     *  TODO: in normal tomcat, if default-web.xml is not found, use this
     *  method
     */
    protected void initWebappDefaults(StandardContext ctx) {
        // Default servlet
        StandardWrapper servlet =
            addServlet(ctx, "default",
                    //new DefaultServlet());
        // Or:
                    "org.apache.catalina.servlets.DefaultServlet");
        servlet.addInitParameter("listings", "false");
        servlet.setLoadOnStartup(1);

        // class name - to avoid loading all deps
        servlet = addServlet(ctx, "jsp",
            "org.apache.jasper.servlet.JspServlet");
        servlet.addInitParameter("fork", "false");
        servlet.addInitParameter("xpoweredBy", "false");
       
        // in default web.xml - but not here, only needed if you have
        // jsps.
        //servlet.setLoadOnStartup(3);
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.