tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From heamaya <heam...@gmail.com>
Subject Re: Struts 2 Tiles 2 Freemarker Integration
Date Fri, 30 Jul 2010 15:34:07 GMT

This is the URL :

This is the struts.xml part concerning to this URL:

<package name="administrator" namespace="/administrator"
			<result-type name="tiles"
default="true" />
		<default-interceptor-ref name="paramsPrepareParamsStack" />
		<default-action-ref name="VendorAction_list" />
			<result name="error"> 
			<exception-mapping result="error" exception="java.lang.Exception" />
			<exception-mapping result="error"
exception="org.apache.tiles.preparer.PreparerException" />
		<action name="*_list" class="ro.action.{1}" method="list">
			<result name="input">
			<result name="success">
			<result name="list">

		<action name="*_*" class="ro.action.{1}" method="{2}">
			<result name="input">
			<result name="success">
			<result name="list" type="redirectAction">
			<result name="find" type="redirectAction">

Maybe this has something to do with the freemarker servlet in this property


Or in TilesFactory in method registerAttributeRenderers in this line

	    freemarkerRenderer.setParameter("TemplatePath", "/WEB-INF/ftl");

Because I guess this are the places where you say to freemarker were to look
for templates but I'm not sure that's why I'm asking whether I have to load
templates in a different way, for example with a class as the freemarker
documentation says:

View this message in context: http://old.nabble.com/Struts-2-Tiles-2-Freemarker-Integration-tp29297517p29307286.html
Sent from the tiles users mailing list archive at Nabble.com.

View raw message