每当创建一个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>

posted on 2016-07-12 19:55  雪的心  阅读(180)  评论(0编辑  收藏  举报

导航