
| Key: |
WW-676
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Mathias Bogaert
|
| Reporter: |
jezbum
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
tomcat 5.0.18
webwork 2.1.5
tomcat 5.0.18
webwork 2.1.5
|
|
|
The documentation says to set the init-param of the freemarker servlet to:
<init-param>
<param-name>TemplatePath</param-name>
<param-value>/</param-value>
</init-param>
try to change this to
<init-param>
<param-name>TemplatePath</param-name>
<param-value>/WEB-INF/views</param-value>
</init-param>
and the webapp ceases to work with a tomcat resource not found exception
For a quick fix, please modify FreemarkerManager.getTemplateLoader() and add this to the TemplateLoader array being passed to the MultiTemplateLoader constructor:
new FileTemplateLoader(new File(servletContext.getInitParameter("TemplatePath"))),
hope it helps some.
|
|
Description
|
The documentation says to set the init-param of the freemarker servlet to:
<init-param>
<param-name>TemplatePath</param-name>
<param-value>/</param-value>
</init-param>
try to change this to
<init-param>
<param-name>TemplatePath</param-name>
<param-value>/WEB-INF/views</param-value>
</init-param>
and the webapp ceases to work with a tomcat resource not found exception
For a quick fix, please modify FreemarkerManager.getTemplateLoader() and add this to the TemplateLoader array being passed to the MultiTemplateLoader constructor:
new FileTemplateLoader(new File(servletContext.getInitParameter("TemplatePath"))),
hope it helps some. |
Show » |
| There are no comments yet on this issue.
|
|