Configurable path to decorators.xml in sitemesh.xml

Bharat <[email protected]> Fri, 7 May 2010 09:45:30 -0700
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <[email protected]>
--000feaee4e0589c36b048603c96f
Content-Type: text/plain; charset=ISO-8859-1

I am trying to have a configurable path to decorators.xml in sitemesh.xml
depending upon the deploy system ie, where my app will run. Is there a way I
can pass some sorta property to this:

<property name="decorators-file" value="<property>" />

Anyone? Thanks very much !

-------------
<sitemesh>
<property name="decorators-file" value="/WEB-INF/decorators.xml" />
<excludes file="${decorators-file}" />

<page-parsers>
<parser content-type="text/html"
class="com.opensymphony.module.sitemesh.parser.HTM LPageParser" />
<parser content-type="text/html;charset=ISO-8859-1"
class="com.opensymphony.module.sitemesh.parser.HTM LPageParser" />
</page-parsers>

<decorator-mappers>
<mapper class="com.opensymphony.module.sitemesh.mapper.Con
figDecoratorMapper">
<param name="config" value="${decorators-file}" />
</mapper>
</decorator-mappers>
</sitemesh>

--000feaee4e0589c36b048603c96f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<meta charset=3D"utf-8"><span class=3D"Apple-style-span" style=3D"font-fami=
ly: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, san=
s-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-b=
order-vertical-spacing: 1px; ">I am trying to have a configurable path to d=
ecorators.xml in sitemesh.xml depending upon the deploy system ie, where my=
 app will run. Is there a way I can pass some sorta property to this:<br>
<br>&lt;property name=3D&quot;decorators-file&quot; value=3D&quot;&lt;prope=
rty&gt;&quot; /&gt;<br><br>Anyone? Thanks very much !<br><br>-------------<=
br>&lt;sitemesh&gt;<br>&lt;property name=3D&quot;decorators-file&quot; valu=
e=3D&quot;/WEB-INF/decorators.xml&quot; /&gt;<br>
&lt;excludes file=3D&quot;${decorators-file}&quot; /&gt;<br><br>&lt;page-pa=
rsers&gt;<br>&lt;parser content-type=3D&quot;text/html&quot;<br>class=3D&qu=
ot;com.opensymphony.module.sitemesh.parser.HTM LPageParser&quot; /&gt;<br>&=
lt;parser content-type=3D&quot;text/html;charset=3DISO-8859-1&quot;<br>
class=3D&quot;com.opensymphony.module.sitemesh.parser.HTM LPageParser&quot;=
 /&gt;<br>&lt;/page-parsers&gt;<br><br>&lt;decorator-mappers&gt;<br>&lt;map=
per class=3D&quot;com.opensymphony.module.sitemesh.mapper.Con figDecoratorM=
apper&quot;&gt;<br>
&lt;param name=3D&quot;config&quot; value=3D&quot;${decorators-file}&quot; =
/&gt;<br>&lt;/mapper&gt;<br>&lt;/decorator-mappers&gt;<br>&lt;/sitemesh&gt;=
</span>

--000feaee4e0589c36b048603c96f--