[
https://issues.apache.org/jira/browse/WW-5432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart closed WW-5432.
-----------------------------
Resolution: Won't Do
{{WebappClassTemplateLoader}} is Tiles specific class not available in Struts
core
> Replace ClassTemplateLoader with WebappClassTemplateLoader
> ----------------------------------------------------------
>
> Key: WW-5432
> URL: https://issues.apache.org/jira/browse/WW-5432
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - Tiles
> Reporter: Lukasz Lenart
> Priority: Minor
> Fix For: 6.5.0
>
>
> {{FreemarkerManager}} uses custom logic to select from where to load
> templates:
> {code:java}
> if (templatePath.startsWith("class://")) {
> // substring(7) is intentional as we "reuse" the last slash
> templatePathLoader = new ClassTemplateLoader(getClass(),
> templatePath.substring(7));
> } else if (templatePath.startsWith("file://")) {
> templatePathLoader = new FileTemplateLoader(new
> File(templatePath.substring(7)));
> }
> {code}
> yet this can be replaced with {{WebappClassTemplateLoader}} which does the
> same
--
This message was sent by Atlassian Jira
(v8.20.10#820010)