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, 'lucida grande', 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><property name=3D"decorators-file" value=3D"<prope=
rty>" /><br><br>Anyone? Thanks very much !<br><br>-------------<=
br><sitemesh><br><property name=3D"decorators-file" valu=
e=3D"/WEB-INF/decorators.xml" /><br>
<excludes file=3D"${decorators-file}" /><br><br><page-pa=
rsers><br><parser content-type=3D"text/html"<br>class=3D&qu=
ot;com.opensymphony.module.sitemesh.parser.HTM LPageParser" /><br>&=
lt;parser content-type=3D"text/html;charset=3DISO-8859-1"<br>
class=3D"com.opensymphony.module.sitemesh.parser.HTM LPageParser"=
/><br></page-parsers><br><br><decorator-mappers><br><map=
per class=3D"com.opensymphony.module.sitemesh.mapper.Con figDecoratorM=
apper"><br>
<param name=3D"config" value=3D"${decorators-file}" =
/><br></mapper><br></decorator-mappers><br></sitemesh>=
</span>
--000feaee4e0589c36b048603c96f--