struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4623) Multiple tiles.xml in web.xml
Date Mon, 04 Apr 2016 18:17:25 GMT

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

ASF GitHub Bot commented on WW-4623:
------------------------------------

Github user aleksandr-m commented on the pull request:

    https://github.com/apache/struts/pull/94#issuecomment-205429031
  
    In 2.3.28 `StrutsWildcardServletTilesApplicationContext` produces something like that:
    
    > org.apache.struts2.tiles.StrutsTilesListener - Starting Struts Tiles 2 integration
...
    > org.apache.struts2.tiles.StrutsTilesInitializer - Initializing Tiles wildcard support
...
    > org.apache.struts2.tiles.StrutsWildcardServletTilesApplicationContext:
    > 
    > url= file:/path/to/webapps/app/img/
    > url= file:/path/to/webapps/app/js/
    > url= file:/path/to/webapps/app/META-INF/
    > url= file:/path/to/webapps/app/index.jsp
    > url= file:/path/to/webapps/app/WEB-INF/
    > url= file:/path/to/webapps/app/css/
    > url= file:/path/to/webapps/app/favicon.ico
    
    And `ResourceFinder#getResourcesMap` won't look into sub-folders, meaning that `**/tiles`
pattern is irrelevant in such case.


>  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
>             Fix For: 2.3.29
>
>
> 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)

Mime
View raw message