You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/09/14 19:00:00 UTC

[jira] [Closed] (WW-1833) Template overrides don't pick up JavaScript files

     [ https://issues.apache.org/jira/browse/WW-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart closed WW-1833.
-----------------------------
    Resolution: Fixed

> Template overrides don't pick up JavaScript files
> -------------------------------------------------
>
>                 Key: WW-1833
>                 URL: https://issues.apache.org/jira/browse/WW-1833
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Tags
>    Affects Versions: 2.0.6
>            Reporter: Brian Pontarelli
>            Assignee: James Holmes
>            Priority: Minor
>             Fix For: 6.1.0
>
>
> It appears that if I have overridden an template inside my web application like this:
> /template/ajax
>   - form.ftl
>   - form-close.ftl
>   - validation.js
> Struts 2 correctly picks up the two templates from this location but it does not pick up the JavaScript file. Instead it always grabs the file from the core JAR. I opened an issue about a year ago with WebWork for this same issue, but it was never fixed. Ideally all of the files that a template requires will be accessible from the override directory rather than having to hack up URLs and such or using other more non-intuitive locations.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)