The simplest way would be to put it in the ROOT context:
e.g. webapps/ROOT/WEB-INF/classes/<YOUR SERVLET CLASS HERE>
You could also add the servlet parameter info to the web.xml pertaining to the
ROOT context.
-Thom
Mandar Joshi wrote:
> I want to make a simple applet run on tomcat.
> I don't want to put that in an enterprise application just want to have it
> in the classpath and make an entry in the web.xml like this
>
> <servlet>
> <servlet-name>
> ServRequests
> </servlet-name>
> <servlet-class>
> com.mandar.servlet.RequestsServlet
> </servlet-class>
> <context-param>
> <init-param>
> <param-name>
> acceptrequests
> </param-name>
> <param-value>
> quoteRequests
> </param-value>
> </init-param>
> </context-param>
> </servlet>
>
> secondly can I pass in the init param as shown above ?
>
> Thanks in advance
>
> Mandar
--
http://www.borland.com/newsgroups
http://www.borland.com/devsupport/disclaim.html