[OFBiz] Dev - Root directory of the templates

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OFBiz] Dev - Root directory of the templates

Firas A.-2
Hello all,

I'm having problem with the Freemarker include directive.
I get an error if the included template is outside of the including file's
directory. Here's a scenario:

In ecommerce/includes/header.ftl I put <#include "cart/microcart.ftl">

As far as I know the "root directory of the templates" is set to
HttpServletRequest.getRealPath("/"), so the filename parameter should be OK,
but a TemplateException is raised: "Error reading included file..."

What's wrong?

Thanks for your time!

</Firas>

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev