Utilisation de plusieurs struts-config.xml
Bonjour,
J'ai un problème de redirection vers une action en utilisant plusieurs struts-config.
L'organisation des dossiers:
Code:
1 2 3 4 5 6 7 8 9 10
| WEB-INF
Struts-config.xml
tiles-def.xml
Struts
Authentification
Struts-config.xml
tiles-def.xml
DmdConges
Struts-config.xml
tiles-def.xml |
Declaration dans le Web.xml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/Authentification</param-name>
<param-value>/WEB-INF/struts/Authentification/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/DmdConges</param-name>
<param-value>/WEB-INF/struts/DmdConges/struts-config.xml</param-value>
</init-param> |
Du struts-config principal j'arrive à accèder à celui de l'authentification
Code:
1 2 3 4 5
| <action-mappings>
<action path="/init" type="DCP.struts.action.Authentification.AuthentificationAction" >
<forward name="success" path="/Authentification/authentification.do" />
</action>
</action-mappings> |
Mon problème est quand je suis dans Authentification pour appeler une action se trouvant dans le struts DmdConges
j'ai essayé
Code:
1 2 3
| <action path="/ValiderAuthentification" type="DCP.struts.action.Authentification.ValiderAuthentificationAction" >
<forward name="success" path="/DmdConges/AfficherSaisieConges.do"/>
</action> |
mais cela ne fonctionne pas.
Merci de votre aide