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

Auto loading the Tiles definition files from the classpath dependent JAR

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.3.0
    • 6.4.0
    • Plugin - Tiles
    • None

    Description

      Hi Team

      Currently we are able to load all the tiles definition files if it is available under the WEB-INF folder with file name convention tiles*.xml. But we are unable to load the tiles definition files which is available as a part of the dependent jar files /WEB-INF/lib folders even though the file name convention starts with tiles*.xml

      Need to enhance the feature to also look on the associated library files for the tiles definitions.

      (OR)

      We need to enhance the another existing approach of defining the tiles definition files with the below param,
      org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG
      With this param currently we cannot load the tiles definition files unless we have defined the parameter value as complete actual file path
      Current acceptance - /WEB-INF/config/tiles/com.acnielsen.ftms.tiles.xml
      Proposed (Wildcard usage)- /WEB-INF/config/tiles/*.tiles.xml
      Additionally the current definition scope will only scan files within application again it is not scanning on the lib files available under the classpath
      Proposed - classpath*:/META-INF/*.tiles.xml

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m