Bonjour,
Je développe une appli web avec struts 1.3.8 et je souhaiterai utiliser tiles.

Le problème est que struts n'arrive pas à retrouver la définition de la page souhaitée :
Le chemin webui.welcome ne commence pas par le caractère "/"

Ce qui est étrange c'est que mon code marche bien avec struts 1.2.9.

tiles-def.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="ISO-8859-1" ?>
 
    <!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
       "http://struts.apache.org/dtds/tiles-config_1_3.dtd">
 
<tiles-definitions>
 
   	<definition name="app.templates.principal" path="/jsp/templates/principal.jsp" />
 
	<definition name="app.main" extends="app.templates.principal">
        <put name="menu" value="/jsp/common/menu.jsp"/>   	</definition>
 
   	<definition name="webui.welcome" extends="app.main">
	    <put name="body" value="/jsp/common/welcome.jsp"/>
    </definition>
 
</tiles-definitions>
struts-config.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="ISO-8859-1" ?>
 
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
          "http://struts.apache.org/dtds/struts-config_1_3.dtd">
 
<struts-config>
 
    <action-mappings>
 
    	<action path="/WelcomeAction"     			type="fr.eg.archivage.action.WelcomeAction">          	
          	<forward name="success" path="webui.welcome" />
        </action>
 
    </action-mappings>   
 
        <plug-in className="org.apache.struts.tiles.TilesPlugin">
        <set-property property="definitions-config" value="/WEB-INF/config/tiles-defs.xml" />
        <set-property property="moduleAware" value="true" />
        <set-property property="definitions-parser-validate" value="true" />
    </plug-in>
 
</struts-config>
Si quelqu'un a déjà rencontré ce problème, je le remercie d'avance pour son aide.