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

Tiles-Plugin unable to load tiles definition XML if the file names are specified with wild char

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 6.3.0
    • 6.4.0
    • Plugin - Tiles
    • None

    Description

      Hi I am doing the migration from Apache tiles 2.1.4 to Apache struts2-tiles-plugin 6.3.0.2 since tiles reached the EOL long time before and it will not support anything for jakarta namespacing.
      As struts will start providing support for jakarta namespacing from v7.X we are migrating the Apache tiles to Apache struts2-tiles-plugin 6.3.0.2 now.

      Issue:

      1. With the Apache tiles 2.1.4 we are able to load the tiles defintion file from webapp with the help of the wildcard character in the file name. For ex:- /WEB-INF/config/tiles/*.tiles.xml. With the current plugin version we are unable to do so.
        We are enabling this configuration by defining it under param-name "org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG"
      2. We are having a template framework which had been created on the top of Struts and tiles. We have generic tiles definition defined to handle the template genrically across our applications. When I tried to load the tiles definition with wildcar character again, it is not getting loaded.
        For ex:- classpath*:/META-INF/org.kawa.tiles.xml,classpath*:/META-INF/com.*.tiles.xml
        We also have enabled this configuration under the param-name "org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG"

      Could you please let me know the option to enable the wildcard character naming for tiles definition file loading from the application path and also it's dependent application files.

      Attachments

        1. Web_XML_File_Tiles_Defintion_Context.PNG
          58 kB
          Saravanan Sivaguru

        Activity

          People

            Unassigned Unassigned
            sisa Saravanan Sivaguru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: