tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Banks" <>
Subject Embedded Tomcat with no war or webapps
Date Tue, 20 Jul 2004 14:15:40 GMT

I have successfully embedded Tomcat 5 into an application,
but I would like to be able to load servlets without using
a .war file or a webapps directory and no web.xml file.

In Jetty I can do the following:

        ServletHolder holder = handler.addServlet(
            "MYSERVLET", "/myservlet/*", MyServlet.class.getName() );
        holder.setInitParameter( "ParameterA", "/usr/local/dir" );
        holder.setInitParameter( "ParameterB", "42" );

Is there any way to do the same with Tomcat?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message