You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/09/02 06:13:35 UTC
[jira] Commented: (WW-1595) Allow codebehind to select the starting
directory point
[ https://issues.apache.org/struts/browse/WW-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42097 ]
Paul Benedict commented on WW-1595:
-----------------------------------
Is it possible to set the pathPrefix to WEB-INF? I am unable to do so. Struts keeps looking at the web root instead. Using 2.0.9
> Allow codebehind to select the starting directory point
> --------------------------------------------------------
>
> Key: WW-1595
> URL: https://issues.apache.org/struts/browse/WW-1595
> Project: Struts 2
> Issue Type: New Feature
> Components: Plugins
> Affects Versions: 2.0.2, 2.0.3
> Reporter: Aadi Deshpande
> Assignee: Don Brown
> Fix For: 2.0.3
>
> Attachments: codebehind.patch
>
>
> Here's a simple patch to allow a new default "root" directory to be used when searching templates. I created it because I had a wish to keep jsp and css in independent directories.
> The configuration property is known as "struts.codebehind.pathPrefix" and requires a trailing slash
> It's set to default to "/" in both the java and in the struts-plugin.xml
> as an addendum, per a request, i've also added the default constant for "struts.codebehind.defaultPackage" to help the codebehind plugin remain selfcontained.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.