您的位置:寻梦网首页编程乐园Java天地JSP 专辑JSP001 HTML 离线版
Java 天地
JSP001 HTML 离线版
FAQ汇萃 >> Tomcat >> WEB 调用 servlet 的时候,我如何把<host>/servlet/<class> 换成 <host>/servlets/<class>

由 webmaster 发布于: 2001-01-30 09:31

Cool

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.



资料来源: JSP001.com