Re: Struts 7.0 issue with Ftl

Lukasz Lenart <[email protected]> Wed, 28 May 2025 13:18:36 +0200
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CAMopvkPNE=Y47jU_JhEMqybQtz_OGctsH+bWA_j10piyNvov9Q@mail.gmail.com>
śr., 28 maj 2025 o 12:25 Priyanka Vaddadi
<[email protected]> napisał(a):
>
> Hi
>
> I am getting below error while loading the page after migrating to struts 7
> Pleaselet me know what could be the issue
>
>
> Template inclusion failed (for parameter value "/Empty{name='templateDir'}/simple/checkbox.ftl"):
> Template not found for name "Empty{name='templateDir'}/simple/checkbox.ftl".
> The name was interpreted by this TemplateLoader: org.apache.struts2.views.freemarker.FreemarkerThemeTemplateLoader@6ab4e90c.
>
> ----
> FTL stack trace ("~" means nesting-related):
>                - Failed at: #include "/${parameters.templateDir}/...  [in template "template/wam/checkbox.ftl" at line 23, column 1]

${parameters} has been replaced with ${attributes}, see the migration guide
https://cwiki.apache.org/confluence/display/WW/Struts+6.x.x+to+7.x.x+migration#Struts6.x.xto7.x.xmigration-Templatesparameters


Cheers
Łukasz