Yes it is possible. In our applications, objects such as a user object exist in the session area, but this can be any freemarker available that can be accessed:
<#if Session.the_user?? && Session.the_user.loggedIn> <#-- header code --> </#if>
You can omit Session. , and Freemarker will look for different areas for the given variable name.
To add content, include it at a point in the main template, where you want the view page to place its content:
<#nested>
Then, the browse pages announce the use of the wizard template as follows:
<#import "/WEB-INF/ftl/path/to/template/master.ftl" as com> <@com.template> View page content </@com.template>
source share