[ 
https://issues.apache.org/jira/browse/WW-4623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222522#comment-15222522
 ] 

victorsosa commented on WW-4623:
--------------------------------

Please also check

[Tiles plugin|https://cwiki.apache.org/confluence/display/WW/Tiles+Plugin]

"As from Struts 2.3.28, the plugin automatically loads all Tiles definitions 
matching the following pattern tiles*.xml - you don't have to specify them via 
org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG in web.xml, 
but you can use this option if your application is going to work in restricted 
servlet environment e.g. Google AppEngine. In such case, defintions will be 
read from provided init-param."



>  Multiple tiles.xml in web.xml
> ------------------------------
>
>                 Key: WW-4623
>                 URL: https://issues.apache.org/jira/browse/WW-4623
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.3.28
>            Reporter: D Qiu
>            Priority: Minor
>
> Using struts2.3.24.1, the application can find the definition in a.xml and 
> b.xml
> (web.xml)
> <context-param>
>       
> <param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
>       <param-value>/WEB-INF/a.xml,/WEB-INF/b.xml</param-value>
> </context-param>
> With struts2.3.28, the application generates 
> "org.apache.tiles.definition.NoSuchDefinitionException" xxx at 
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:625)
> (web.xml)
> <context-param>
>       
> <param-name>org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG</param-name>
>     <param-value>/WEB-INF/a.xml,/WEB-INF/b.xml</param-value>
> </context-param>
> ----------
> It works fine with a single file
> (web.xml)
> <context-param>
>       
> <param-name>org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG</param-name>
>     <param-value>/WEB-INF/a.xml</param-value>
> </context-param>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to