Hello,

Est-il possible de mettre une definition d'un tiles dans le input d'un action-mapping?

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
24
25
 
<!-- Action mappings -->
  <action-mappings>
    <action path="/createCampaign" type="com.decathlon.trocathlon.campaignManagement.action.CreationOfCampaign">
      <forward name="success" path=".createCampaign"/>
    </action>
    <action path="/validateCampaign" 
    		name="createCampaignForm" 
type="com.decathlon.trocathlon.campaignManagement.action.ValidationOfCampaign" 
    		scope="request" 
    		validate="true" 
    		input=".createCampaign">
      <forward name="success" path=".main"/>
    </action>
  </action-mappings>
  <controller/>
  <!-- Tiles Plugin -->
  <plug-in className="org.apache.struts.tiles.TilesPlugin">
    <set-property property="definitions-config" value="/WEB-INF/conf/tiles-defs.xml,/WEB-INF/conf/commons-config/tiles-defs.xml,/WEB-INF/conf/campaign/tiles-defs.xml,/WEB-INF/conf/main/tiles-defs.xml"/>
    <set-property property="definitions-debug" value="1"/>
    <set-property property="definitions-parser-details" value="1"/>
    <set-property property="definitions-parser-validate" value="true"/>
    <set-property property="moduleAware" value="true"/>
    <set-property property="debugLevel" value="0"/>
  </plug-in>
Mon .createCampaign est dans WEB-INF/conf/campaign/tiles-defs.xml que voici:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
<tiles-definitions>
 
	<definition name=".createCampaign" extends=".refresh" >
		<putList name="divIds" >        
			<add value="SHOW_HIDE_TABBED_PANE_RESULT" />    
		</putList>
		<putList name="divs" extends=".refresh">        
			<add value="/jsp/campaign/createCampaign.jsp"/>    
		</putList>
	</definition>
</tiles-definitions>
J'ai comme résultat :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
org.apache.struts.action.ActionMapping: Unable to find '.createCampaign' forward.
Si je remplace le
Code : Sélectionner tout - Visualiser dans une fenêtre à part
input=".createCampaign"
par
Code : Sélectionner tout - Visualiser dans une fenêtre à part
input="/jsp/campaign/createCampaign.jsp"
J'obtiens le même:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
org.apache.struts.action.ActionMapping: Unable to find '/jsp/campaign/createCampaign.jsp' forward.
Merci