FreeMarker error when trying to use AJAX Theme

Problem: When giving the <s:head theme="ajax" /> tag in jsp AJAX in struts 2.1.6 or dojo in struts 2.1.6.

FreeMarker template error!



Expression parameters.parseContent is undefined on line 45, column 28 in template/ajax/head.ftl.
The problematic instruction:
----------
==> ${parameters.parseContent?string} [on line 45, column 26 in template/ajax/head.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression parameters.parseContent is undefined on line 45, column 28 in template/ajax/head.ftl.

        
 Solution: Replace <s:head theme="ajax">   with <sx:head parseContent="true"/>

No comments:

Post a Comment