Java Reference
In-Depth Information
13.<url-pattern>/hello</url-pattern>
14.</servlet-mapping>
15.<welcome-file-list>
16.<welcome-file>index.html</welcome-file>
17.<welcome-file>index.htm</welcome-file>
18.<welcome-file>index.jsp</welcome-file>
19.<welcome-file>default.html</welcome-file>
20.<welcome-file>default.htm</welcome-file>
21.<welcome-file>default.jsp</welcome-file>
22.</welcome-file-list>
23.</web-app>
Now we need to configure HelloWorld servlet as a web module in Tomcat. SelectWindow ➤ Show
View ➤ Servers in the menu bar of Eclipse, as illustrated in Figure 2-8 .
Figure 2-8. Adding the server
 
Search WWH ::




Custom Search