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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to