淘宝商城servlet的路径web.xml部分
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <servlet> <description>This is the description of my J2EE component</description> <display-name>This is the display name of my J2EE component</display-name> <servlet-name>showGoodsClServlet</servlet-name> <servlet-class>com.xf.servlet.showGoodsClServlet</servlet-class> </servlet> <servlet> <description>This is the description of my J2EE component</description> <display-name>This is the display name of my J2EE component</display-name> <servlet-name>ShoppingClServlet</servlet-name> <servlet-class>com.xf.servlet.ShoppingClServlet</servlet-class> </servlet> <servlet> <description>This is the description of my J2EE component</description> <display-name>This is the display name of my J2EE component</display-name> <servlet-name>ShoppingCl2</servlet-name> <servlet-class>com.xf.servlet.ShoppingCl2</servlet-class> </servlet> <servlet> <description>This is the description of my J2EE component</description> <display-name>This is the display name of my J2EE component</display-name> <servlet-name>loginCl</servlet-name> <servlet-class>com.xf.servlet.loginCl</servlet-class> </servlet> <servlet> <description>This is the description of my J2EE component</description> <display-name>This is the display name of my J2EE component</display-name> <servlet-name>OrderClServlet</servlet-name> <servlet-class>com.xf.servlet.OrderClServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>showGoodsClServlet</servlet-name> <url-pattern>/showGoodsClServlet</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ShoppingClServlet</servlet-name> <url-pattern>/ShoppingClServlet</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ShoppingCl2</servlet-name> <url-pattern>/ShoppingCl2</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>loginCl</servlet-name> <url-pattern>/loginCl</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>OrderClServlet</servlet-name> <url-pattern>/OrderClServlet</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。