Bonjour,

J'ai un problème de redirection vers une action en utilisant plusieurs struts-config.

L'organisation des dossiers:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 : Sélectionner tout - Visualiser dans une fenêtre à part
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 : Sélectionner tout - Visualiser dans une fenêtre à part
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 : Sélectionner tout - Visualiser dans une fenêtre à part
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