I'm trying to use the @include_page macro from FreemarkerServlet - using Maven Freemarker framework with Freemarker version 2.3.31 and I can see the notes about this tag being now available in the source of it, but it still is not resolved/recognized in the actual template output.
For context:
- Everything is fully configured and working as expected with pure ftl
- We have a dependency on using JSP-only templates for a part of the output (while the main code base is using only .ftl templates)
- The
@include_pageallows to include jsp pages into ftl - How I'm trying:
- In WEB-INF/views directory, let's say there is a home.ftl
- Add hello.jsp with
<h2>Hello!</h1> - In home.ftl
<#assign....>
.
.
.
<div>
<@include_page path="hello.jsp"/>
</div>
.
.
.
- This results in an error that statement on the line with include_page was not found on null followed by instructional on using defaults or
ifs
Does anyone know if there is some additional configuration needed to make use of it?