Skip to content

Instantly share code, notes, and snippets.

@marcric
Last active December 18, 2015 05:58
Show Gist options
  • Save marcric/5736098 to your computer and use it in GitHub Desktop.
Save marcric/5736098 to your computer and use it in GitHub Desktop.
Exemplo de web.xml
<?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_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>Aplicação Web Simples</display-name>
<welcome-file-list>
<welcome-file>Cliente.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>cliente</servlet-name>
<servlet-class>iniciantes.ExibirClienteServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>cliente</servlet-name>
<url-pattern>/dadosCliente</url-pattern>
</servlet-mapping>
</web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment