Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.4
-
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="
<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.
"/>
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.