|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
|
|
|
version="4.0">
|
|
|
|
<display-name></display-name>
|
|
|
|
<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>RegisterServlet</servlet-name>
|
|
|
|
<servlet-class>Register.RegisterServlet</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>LoginServlet</servlet-name>
|
|
|
|
<servlet-class>Register.LoginServlet</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>UploadServlet</servlet-name>
|
|
|
|
<servlet-class>BookOperation.UploadServlet</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>ShopCartServlet</servlet-name>
|
|
|
|
<servlet-class>ShopCar.ShopCartServlet</servlet-class>
|
|
|
|
</servlet>
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>RegisterServlet</servlet-name>
|
|
|
|
<url-pattern>/register.action</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>UploadServlet</servlet-name>
|
|
|
|
<url-pattern>/upload.action</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>LoginServlet</servlet-name>
|
|
|
|
<url-pattern>/login.action</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>ShopCartServlet</servlet-name>
|
|
|
|
<url-pattern>*.do</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>ShopCartServlet</servlet-name>
|
|
|
|
<url-pattern>/ShopCartServlet</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
<welcome-file-list>
|
|
|
|
<welcome-file>huiyuan.html</welcome-file>
|
|
|
|
</welcome-file-list>
|
|
|
|
</web-app>
|