FAQ汇萃
>> Tomcat
>> WEB 调用 servlet 的时候,我如何把<host>/servlet/<class> 换成 <host>/servlets/<class>
由 webmaster 发布于: 2001-01-30 09:31
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.
|