Discussion:
Tiles Support in WC60
(too old to reply)
Mark Sheffield
2007-02-16 21:25:50 UTC
Permalink
Has anyone been able to get Tiles working using the tiles-defs.xml?
I've tried adding the tiles support through the struts-config.xml but it
does not work. It looks like the tiles plugin is being loaded but the
tiles definitions are not being processed.

Thanks,
mark
Thomas Weidemann
2007-02-20 07:13:37 UTC
Permalink
Hi Mark!

I got it working by adding the following to the struts-config.xml

<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml"/>
</plug-in>

Regards
Thomas
Has anyone been able to get Tiles working using the tiles-defs.xml? I've
tried adding the tiles support through the struts-config.xml but it does
not work. It looks like the tiles plugin is being loaded but the tiles
definitions are not being processed.
Thanks,
mark
Mark Sheffield
2007-02-20 15:12:36 UTC
Permalink
Thanks Thomas. I did that and it did not work. I finally realized that
the commerce engine prepends the store identifier to the tiles
definition name.

So if your forward looks like this:
<forward className="com.ibm.commerce.struts.ECActionForward"
name="TilesTestView/10101" path="tilestest.view"/>

Your tiles-def should look like this:
<definition name="ConsumerDirect.tilestest.view" extends="basic.layout">
<put name="content"
value="/ConsumerDirect/StoreInfoArea/TilesTestDisplay.jsp"/>
</definition>


mark
Post by Thomas Weidemann
Hi Mark!
I got it working by adding the following to the struts-config.xml
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml"/>
</plug-in>
Regards
Thomas
Post by Mark Sheffield
Has anyone been able to get Tiles working using the tiles-defs.xml?
I've tried adding the tiles support through the struts-config.xml but
it does not work. It looks like the tiles plugin is being loaded but
the tiles definitions are not being processed.
Thanks,
mark
Continue reading on narkive:
Loading...