This is the URL :
http://localhost:8080/RemOpt/administrator/OperatorAction_list.action

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

<package name="administrator" namespace="/administrator"
extends="tiles-default">        
                <result-types>
                        <result-type name="tiles"
class="org.apache.struts2.views.tiles.TilesResult" 
default="true" />
                </result-types>
                
                <default-interceptor-ref name="paramsPrepareParamsStack" />
                
                <default-action-ref name="VendorAction_list" />
                
                <global-results>
                        <result name="error"> 
                                error
                        </result>
                </global-results>
                
                <global-exception-mappings>
                        <exception-mapping result="error" 
exception="java.lang.Exception" />
                        <exception-mapping result="error"
exception="org.apache.tiles.preparer.PreparerException" />
                </global-exception-mappings>
                
                <action name="*_list" class="ro.action.{1}" method="list">
                        
                        <result name="input">
                                ${destination}
                        </result>
                        <result name="success">
                                ${destination}
                        </result>
                        <result name="list">
                                ${destination}Listing
                        </result>
                </action>


                <action name="*_*" class="ro.action.{1}" method="{2}">
                        <result name="input">
                                ${destination}
                        </result>
                        <result name="success">
                                ${destination}
                        </result>
                        <result name="list" type="redirectAction">
                                ${destination}_list
                                /administrator  
                        </result>
                        <result name="find" type="redirectAction">
                                ${destination}_find
                                /administrator  
                        </result>
                </action>


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

        <init-param>
                <param-name>TemplatePath</param-name>
                <param-value>/WEB-INF/ftl</param-value>
        </init-param>

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:

http://freemarker.sourceforge.net/docs/pgui_config_templateloading.html
-- 
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.

Reply via email to