每当创建一个servlet时,myeclipse会自动帮你在WEB-INF下面 的web.xml里面帮你 配置好<servlet-name> <servlet-class> <url-pattern>
<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>HelloServlet</servlet-name>
<servlet-class>HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/servlet/HelloServlet</url-pattern>
</servlet-mapping>
孜孜不倦,必能求索;风尘仆仆,终有归途。