I have an Action that will do some DB things and currently return a pre-defined ActionForward that links to a pre-defined Tile definition. Examples are below. What I want to do, is save myself some typing, and assemble the tile definition dynamically in the Action, and then return a new ActionForward for that definition (or something like this). The reason being, the forwards & Tile definitions (currently) would need to be duplicated 4 additional times to support the different sections of our site.

Any suggestions? I'd need to be able to create definitions that extend pre-defined ones (like .baseLayout.garden) as well as setting attributes that reference pre-defined definitions (like .mainLayout). Thanks in advance!

Forwards:
       <forward
           name="displayProduct"
           path="garden.product"/>
       <forward
           name="showCategory"
           path="garden.category"/>

Tile-Defs:
<definition name="garden.product" extends=".baseLayout.garden">
<put name="mainLayout" value=".mainLayout"/>
<put name="navigation" value=".navigation.level3"/>
<put name="content" value="/common/tiles/productContent.jsp"/>
</definition>
<definition name="garden.category" extends=".baseLayout.garden">
<put name="mainLayout" value=".mainLayout"/>
<put name="navigation" value=".navigation.level3"/>
<put name="content" value="/common/tiles/productCategoryContent.jsp"/>
</definition>


--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



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



Reply via email to