I am trying to configure FreeMarker(.ftl) with an application which is using
Struts 2 (for views and actions) and Spring (for dependency injections).
I want to keep the template files (.ftl) in the application root folder. I am however not able to achieve.
The FreeMarker documention says that to make the template available to the application we need to place the template in either of these locations:
1. Classpath
2. Application root
With classpath it works fine for me but my requirement is different. Now to achieve this is tried to configure FreeMarker for struts/spring by telling the container the path where the template files are present. The following are the approaches:
STRUTS web.xml file
In SPRING's application-context.xml
However, both the approaches are not working. Am I missing something here ? Please help me out.