DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31034>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31034

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

           Summary: use of wildcard in tiles-defs.xml as for wildcard
                    mappings
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Tiles framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to