Pessoal,
To começando estudar java para web, usando a apostila da caelum, é a mais completa que eu achei até hoje.
Pelo meu entendimento, só é necessário declarar os servlets no arquivo web.xml.
minha dúvida é sobre os arquivos html, pois não estou conseguindo acesso aos mesmos e não achei nada na apostila que fale sobre isso
Segue a configuração do web.xml, e algumas imagens.<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>fj21-agenda</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>servletOiMundo</servlet-name>
<servlet-class>br.com.caelum.servlet.OiMundo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>servletOiMundo</servlet-name>
<url-pattern>/oi</url-pattern>
</servlet-mapping>
</web-app>
Status do servidor
[img]http://img252.imageshack.us/img252/2866/serveri.gif[/img]
Package
[img]http://img802.imageshack.us/img802/8922/package.gif[/img]
Index.html
[img]http://img820.imageshack.us/img820/6148/indexwe.gif[/img]
Servlet
[img]http://img803.imageshack.us/img803/9726/servlet.gif[/img]