Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
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
/applications/core/interface/imageproxy/imageproxy.php?img=http://img252.imageshack.us/img252/2866/serveri.gif&key=b790cdf338e2cb6fdf36a4c7e254bfe4f622c7979ed87e2cb280bf67fd121c08" alt="serveri.gif" />
Package
/applications/core/interface/imageproxy/imageproxy.php?img=http://img802.imageshack.us/img802/8922/package.gif&key=069972af2862137ae14d1c94afac0748c20361638d50cb30815471b4d977b7b8" alt="package.gif" />
Index.html
/applications/core/interface/imageproxy/imageproxy.php?img=http://img820.imageshack.us/img820/6148/indexwe.gif&key=815928c40d3d6d73b2781f5c6dddd31eef9413853c5ee8058cc5cb6ed37adbaa" alt="indexwe.gif" />
Servlet
/applications/core/interface/imageproxy/imageproxy.php?img=http://img803.imageshack.us/img803/9726/servlet.gif&key=251ef6eff1153d4efa6c192bdee2acff6d0373c42dd01e971cd74919613aa537" alt="servlet.gif" />
Carregando comentários...