會分別加入
1.<servlet></servlet>
再在裡面加入
(1)
(2)
2. <servlet-mapping></servlet-mapping>
在裡面再加入
(1)
(2) <url-pattern>
以下是上述的實際輸出程式碼
<servlet>
<servlet-name>MyFirstServlet</servlet-name>
<servlet-class>servlets.MyFirstServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyFirstServlet</servlet-name>
<url-pattern>/my_first_servlet.view</url-pattern>
</servlet-mapping>
No comments:
Post a Comment