Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/10/2011, 09:31
herwex
 
Fecha de Ingreso: agosto-2011
Ubicación: d.f
Mensajes: 283
Antigüedad: 12 años, 8 meses
Puntos: 4
Respuesta: no consigo hacer funcionar struts2

te paso un archivo web.xml este lo genero cuando agrego los jar para que funcione struts 2

Código PHP:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>NombreDeTuProyecto</display-name>
    
    <filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
              </filter>
    <filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
    </filter-mapping>
    
    <session-config>
<session-timeout>5</session-timeout>
    </session-config>
    
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
</web-app>
Pruebalo asi, haber como se comporta