Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-220

[tiles] use of wildcard in tiles-defs.xml as for wildcard mappings

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.4
    • 2.1.0
    • tiles-core
    • None
    • Operating System: other
      Platform: Other

    • 31034
    • Patch

    Description

      Wildcard mappings is a interesting new feature in struts 1.2.x. This enhancement
      allow to use wildcard in tiles definition too like the following :

      <definition name="tiles:test.*" path="/testlayout.jsp">
      <put name="testName" value="

      {1}"/>
      <put name="def" value="tiles:another.definition.{1}

      " type="definition"/>
      </definition>

      Using this, you can build a full wildcard request handling when adding a mapping
      in struts-config :

      <action path="/Test*"
      forward="tiles:test.

      {1}

      "/>

      Please note : properties are replaced in attributes of the definition only for
      put elements. It may require a little bit more coding in
      DefinitionsFactory.getDefinition() to add putlist support.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--patch.txt
          9 kB
          nicolas de loof
        2. ASF.LICENSE.NOT.GRANTED--patch.txt
          2 kB
          nicolas de loof
        3. ASF.LICENSE.NOT.GRANTED--patch.txt
          12 kB
          nicolas de loof
        4. WildcardMatchingDefFactory.java
          6 kB
          Tamas Cserveny
        5. 2.0.5.patch
          8 kB
          Tamas Cserveny

        Issue Links

          Activity

            People

              brenmcguire Antonio Petrelli
              ndeloof@capgemini.fr nicolas de loof
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: