olá caros colegas,
estou aprendendo a programar pra web seguindo a apostila fj-21 da Caelum.
o problema é que meu arquivo web.xml (em jspteste2/web/WEB-INF) não é funcional:
1- ele não identifica meu welcome-file
(http status 404 - The requested resource (/jspteste2/) is not available.)
2- ele não encaminha para a mensagem de erro que criei para substituir a mensagem do tomcat
(http status 500 - The server encountered an internal error () that prevented it from fulfilling this request)
será q tem a ver com as versões dos programas?
(tomcat 6.0.16,tk.eclipse.plugin.htmleditor_2.0.5.1,eclipse 3.2.2).
<?xml version="1.0" encoding="ISO-8859-1"?>
<webapp xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4">
<displayname>Aplicacao web simples</displayname>
<welcome-file-list>
<welcome-file>lista-scriptlet.jsp</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>java.sql.SQLException</exception-type>
<location>/erro.jsp</location>
</error-page>
</webapp>
o arquivo lista-scriptlet.jsp(em jspteste2/web) funciona perfeitamente.
o outro arquivo (testa-erro.jsp, que lança o erro propositalmente)é este:<html>
<% java.sql.DriverManager.getConnection("jdbc:teste:invalido"); %>
</html>
<%@ page isErrorPage="true"%>
<html>
<h1>Um erro ocorreu.</h1><br>
${pageContext.errorData.throwable}
</html>
outra coisa é q os arquivos .xml não tem auto-insertion nem ficam coloridos. É assim msm? O amateras só serve pra html e jsp??
obrigada