100 分急求!!! 明天交!!! 在线 请教!!!
怎么web.xml 中的servlet mapping 不起作用!!!
代码如下:
<?xml version= "1.0 " encoding= "ISO-8859-1 "?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN "
"http://java.sun.com/dtd/web-app_2_3.dtd ">
<web-app>
<display-name> Welcome to Tomcat </display-name>
<description>
Welcome to Tomcat
</description>
<filter>
<filter-name> Set Character Encoding </filter-name>
<filter-class> filters.SetCharacterEncodingFilter </filter-class>
<init-param>
<param-name> encoding </param-name>
<param-value> gb2312 </param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name> Set Character Encoding </filter-name>
<url-pattern> /* </url-pattern>
</filter-mapping>
<servlet>
<servlet-name> login </servlet-name>
<servlet-class> login.Login </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> login </servlet-name>
<url-pattern> servlet/login </url-pattern>
</servlet-mapping>
<servlet>
<servlet-name> register </servlet-name>
<servlet-class> register.Register </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> register </servlet-name>
<url-pattern> /servlet/register </url-pattern>
</servlet-mapping>
<servlet>
<servlet-name> addgood </servlet-name>
<servlet-class> admin.AddGood </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> addgood </servlet-name>
<url-pattern> /servlet/addgood </url-pattern>
</servlet-mapping>
<servlet>
<servlet-name> delgood </servlet-name>
<ser