Sunday, May 11, 2008

Executing anonymous servlet in Tomcat - Jboss

If you want to run anonymous servlet classes in Tomcat or Jboss that have not been defined in a web.xml file, you need to change configure it in web.xml.

Open web.xml and uncomment following lines.



Traditionally, this servlet is mapped to the URL pattern "/servlet/*", but you can map it to other patterns as well.

0 Java Junction comments: