Pessoal, to com o seguinte problema:
Tenho uma pasta em webapps chamada myApp (meu módulo web).
Dentro dessa pasta criei o diretorio WEB-INF.
No diretorio WEB-INF criei o web.xml, q ficou assim:
[code]
<?xml version="1.0" encoding="ISO-8859-1"?> Teste Teste [/code]Ainda no diretorio WEB-INF fiz a pasta ‘classes’.
Nessa pasta estah o Teste.class, o servlet ficou assim:
import javax.servlet.;
import javax.servlet.http.;
import java.io.;
import java.util.;
public class Teste extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println("");
out.println("");
out.println(“Servlet Testing”);
out.println("");
out.println("");
out.println(“Welcome to the Servlet Testing Center”);
out.println("");
out.println("");
}
}
Browse: http://localhost:8080/myApp/Teste (naum funciona).
http://localhost:8080/myApp/servlet/Teste (naum funciona).
O meu JAVA_HOME estah configurado.
Se possivel, me digam qual eh o problema…