[
https://issues.apache.org/struts/browse/WW-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41194
]
Musachy Barroso commented on WW-1833:
-------------------------------------
I guess the only way of making this work would be, give a request to
${context}/struts/${path}, check if ${path} exists in the classpath and write
to the output. That would enable to overwrite struts' static resources. A flag
could be added to enable this behavior.
Only a couple of javascript files could be overwritten, is it worth it?
> Template overrides don't pick up JavaScript files
> -------------------------------------------------
>
> Key: WW-1833
> URL: https://issues.apache.org/struts/browse/WW-1833
> Project: Struts 2
> Issue Type: Bug
> Components: Views
> Affects Versions: 2.0.6
> Reporter: Brian Pontarelli
> Priority: Critical
> Fix For: 2.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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.