struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <>
Subject [jira] Updated: (WW-1833) Template overrides don't pick up JavaScript files
Date Fri, 02 May 2008 05:35:06 GMT


Don Brown updated WW-1833:

    Fix Version/s:     (was: 2.1.3)
       Issue Type: Improvement  (was: Bug)

You can override the default files that Struts serves from its jar today, you just have to
put them in the right place.  For example, if you wanted to override the tooltip.gif served
from the jar, copy your tooltip.gif file to WEB-INF/classes/org/apache/struts2/static/tooltip.gif

Therefore, I'm changing this as an enhancement ticket to perhaps make this more intuitive.
 Patches welcome :)

> Template overrides don't pick up JavaScript files
> -------------------------------------------------
>                 Key: WW-1833
>                 URL:
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Tags
>    Affects Versions: 2.0.6
>            Reporter: Brian Pontarelli
>            Assignee: James Holmes
>            Priority: Critical
>             Fix For: Future
> 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.

View raw message