Boas,
Fiz uma Servlet que se chama TestingServlet.java e compilei e agora queria testar isto… na pasta webapps do Tomcat criei uma pasta com o nome Testing Servlet e dps criei uma WEB-INF com o web.xml definido do seguinte modo:
<?xml version="1.0" enconding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>TestingServlet</servlet-name>
<servlet-class>TestingServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestingServlet</servlet-name>
<url-pattern>*.teste</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>TestingServlet</servlet-name>
<url-pattern>TestingServlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout> <!-- 30 minutes -->
</session-config>
</web-app>
criei a pasta classes com o ficheiro TestingServlet.class lá dentro dps tento correr isto chamando:
http://localhost:8080/TestingServlet/TestingServlet mas ele dá erro de not available… qual será o mal???
[size=“11”][color=“red”]* Editado: Lembre-se de utilizar BBCode em seus códigos - Matheus [/color][/size] :joia: