2010/7/29 heamaya <[email protected]>:
>
> Thank you, the exception has disappeared! Problem solved. Now I get a
> message:
> HTTP Status 405 - HTTP method GET is not supported by this URL... But it
> seems this is a struts 2 problem and not a tiles 2 problem, is this correct?
It's *really* strange, what is the URL that causes the problem?

> When I write a definition in the xml file can it be a freemarker template?
>
>        <definition name="administratorBase"
> template="/ftl/administrator/layout.ftl" >
>                <put-attribute name="header" value="/ftl/header.ftl" 
> type="freemarker" />
>                <put-attribute name="menu" value="/ftl/administrator/menu.ftl"
> type="freemarker" />
>                <put-attribute name="footer" value="/ftl/footer.ftl" 
> type="freemarker" />
>        </definition>

Yes.

> In the freemarker template /ftl/administrator/layout.ftl defined in the
> definition above is this line necessary?
>
>  <#assign tiles=JspTaglibs["http://tiles.apache.org/tags-tiles";]>

If you are using Tiles 2.2.x, you can use native Freemarker support:
http://tiles.apache.org/framework/tutorial/integration/freemarker.html

Antonio

Reply via email to