Bonjour
Voici mon web.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <?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>ProjetTest</display-name>
<!-- les filtres -->
<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>15</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>pages/accueil.jsp</welcome-file>
</welcome-file-list>
<!-- session listeners -->
<!-- pour spring -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
</web-app> |
Je ne comprend pas pourquoi lorsque je n'ai que struts , http://localhost:8080/projetTest marche mais coupler avec spring http://localhost:8080/projetTest ne marche pas ... je ne vois pas d'ou pourrai venir le problème
je n'ai rajouter uniquement:
1 2 3 4
| <listener>
<listener-class> org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener> |
daans web.xml
<constant name ="struts.objectFactory" value="spring" />
dans struts.xml
<bean id="clientDvo" class="fr.logica.projetStruts.action.ClientFormulaire"/>
dans applicationContext.xml
Partager