Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4623

Multiple tiles.xml in web.xml

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.28
    • Fix Version/s: 2.3.29, 2.5
    • Component/s: Plugin - Tiles
    • Labels:
      None

      Description

      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>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              deryk D Qiu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: