Hi,

When switching from struts 2.5.26 to 2.5.27 we get the following error:

FreeMarker template error (HTML_DEBUG mode; use RETHROW in production!)


Template inclusion failed (for parameter value 
"/Empty{name='templateDir'}/Empty{name='expandTheme'}/scripting-events.ftl"):
Template not found for name 
"Empty{name='templateDir'}/Empty{name='expandTheme'}/scripting-events.ftl".
The name was interpreted by this TemplateLoader: 
org.apache.struts2.views.freemarker.FreemarkerThemeTemplateLoader@679bd9e8.

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #include "/${parameters.templateDir}/...  [in template 
"template/simple/a-close.ftl" at line 40, column 1]
        
        
The problem is the following:
In a jsp page we use a struts iterator to iterate a list of objects to generate 
a link for each one. The objects do have a method "public Map<String, Object> 
getParameters()".
It seems that now FreeMarker calls the method getParameters from the object on 
the stack to find the templateDir (that cannot be found) instead of using the 
correct parameters as before with struts 2.5.26

We now renamed the method getParameters() to solve the problem, but we do not 
understand if it is a general issue with struts 2.5.27 or with this special 
situation.

Best regards,

Britta






Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to