You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Paweł Wielgus <po...@gmail.com> on 2011/04/14 18:07:49 UTC

Re: Result template relative path

Hi Ilya,
maybe this will help:
<constant name="struts.convention.result.path" value="/WEB-INF/pages/"/>

Best greetings,
Paweł Wielgus.


2011/4/11 Ilya Kazakevich <Il...@jetbrains.com>:
> Hello,
>
> I store all my jspx templates in /WEB-INF/templates/<package>/
> I am tired of copy/paste like
>
> <result name="success">/WEB-INF/templates/foo/success.jspx</result>
> <result name="fail">/WEB-INF/templates/foo/foo.jspx</result>
>
> All my templates are in WEB-INF/templates/
>
> Could I set it in one place for the whole package?
>
> I briefly looked into the code and found noting about it expect
> UiBean#getTemplateDir that I need to hack to achieve my goal.
>
> I wonder if there is an official (not hack!) way to solve my issue.
>
> Thanks.
>
>
> Ilya Kazakevich,
> Developer
> JetBrains Inc
> http://www.jetbrains.com
> "Develop with pleasure!"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org