How do I make Tomcat 3.1 invoke my servlets via the url <host>/servlets/<class> instead of <host>/servlet/<class> that it's doing now?

Matthew Dornquast

 

 

Change the url-pattern of the default servlet invoker located in the "deployment descriptor" for your web application. This file us usually located in <context>/WEB-INF/web.xml file. Replace:

/servlet/*

with:

/servets/*

Also note that in Tomcat 3.1, web applications begin with the default "deployment descriptor" located in <tomcat home dir>/conf/web.xml. You can change the "default" for all web applications there.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact