You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2007/09/08 12:57:35 UTC

[jira] Resolved: (WW-2146) Codebehind only looks for templates in the web root, not in the class path

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

Don Brown resolved WW-2146.
---------------------------

    Resolution: Fixed
      Assignee: Don Brown

Applied with minor modifications.  Thanks for the patch!

> Codebehind only looks for templates in the web root, not in the class path
> --------------------------------------------------------------------------
>
>                 Key: WW-2146
>                 URL: https://issues.apache.org/struts/browse/WW-2146
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugins
>    Affects Versions: 2.0.9
>            Reporter: Jim Cushing
>            Assignee: Don Brown
>             Fix For: 2.1.0
>
>         Attachments: CodebehindUnknownHandler.java.patch
>
>
> Normally, Struts 2 will look for templates (Freemarker, Velocity) first in the web root, then in the class path. This allows templates to be bundled with a JAR, but overridden in the web root. When using Codebehind, however, it only looks for the templates in the web root, disabling a valueable Struts 2 feature. The following patch to CodebehindUnknownHandler.java fixes this issue, though it has only been tested with Freemarker. It has not been tested with Velocity, and it does attempt to look for JSPs in the classpath, which may not be appropriate.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.