注意:servlet-mapping元素必须在servlet元素之后才能设置。 url-pattern matches any HTTP requests ending with the "/cookie/" string. 你能使用通配符”*” 去扩展你的mapping pattern.在下面的范例中以/cookie/开头的德URL都能调用这个CookieServlet。在后面的斜杠后能随意的包含所有名字。举个小例子。CookieServlet能够被这样的URL调用http://www.mysite.org/cookbook/cookie/you 那是因为 url-pattern 匹配到所有的HTTP请求只要他以“/cookie/”字符串结束 Example 3-3. Using an * in the URL pattern http://www.knowsky.com/
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-application_2_3.dtd" >