You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robin Wyles <ro...@robinwyles.com> on 2008/06/02 21:30:48 UTC
C.2.2 Properties in the sitemap
Hi,
Is it possible to use configuration properties defined in /META-INF/
cocoon/properties within a sitemap? Is there an input module that
does this, or can the new expression language block be used?
Thanks,
Robin
Re: C.2.2 Properties in the sitemap
Posted by Robin Wyles <ro...@robinwyles.com>.
Thanks Luca... really must learn my way around the maze of a new
website :)
... I was looking here:
http://cocoon.apache.org/subprojects/configuration/1.0/spring-
configurator/1.0/1304_1_1.html
Robin
On 2 Jun 2008, at 22:07, Luca Morandini wrote:
> Robin Wyles wrote:
>> It's that simple!
>
> Indeed :)
>
>
>> Do you know if this documented anywhere on the C2.2 website?
>
> Here, I guess:
> http://cocoon.apache.org/2.2/core-modules/core/2.2/1261_1_1.html
>
> --------------------
> Luca Morandini
> www.lucamorandini.it
> --------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
Re: C.2.2 Properties in the sitemap
Posted by Luca Morandini <lm...@ieee.org>.
Robin Wyles wrote:
> It's that simple!
Indeed :)
> Do you know if this documented anywhere on the C2.2 website?
Here, I guess:
http://cocoon.apache.org/2.2/core-modules/core/2.2/1261_1_1.html
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: C.2.2 Properties in the sitemap
Posted by Robin Wyles <ro...@robinwyles.com>.
It's that simple!
Do you know if this documented anywhere on the C2.2 website?
Thanks,
Robin
On 2 Jun 2008, at 21:01, Luca Morandini wrote:
> Robin Wyles wrote:
>> Is it possible to use configuration properties defined in /META-
>> INF/cocoon/properties within a sitemap?
>
> Yes.
>
>
>> Is there an input module that does this, or can the new expression
>> language block be used?
>
> No input modules needed for this. It would be fine to use
> expressions across the board (from JXTemplates to sitemaps) but
> this has not yet been implemented.
>
> Here's sample properties file and sitemap fragments:
>
> mapserver.wms-path=/geoserver/wms
> mapserver.wfs-path=/geoserver/wfs
> mapserver.map-format=image/png
> mapserver.cache.expiry-time=3600
> mapserver.map-transparent=false
> mapserver.map-bgcolor=0xffffff
> app.mapserver2appserver=localhost:8080
> app.appserver2mapserver=localhost:8080
> app.path=/geoid-samples
>
> <map:reader name="wmsmcsld"
> src="org.cocoondev.geoid.reading.WMSSLDReader" logger="geoid"
> mime-type="${mapserver.map-format}" path="${mapserver.wms-
> path}"
> server="${app.appserver2mapserver}" sld-path="http://$
> {app.mapserver2appserver}${app.path}/"
> wfs-path="http://${app.appserver2mapserver}${mapserver.wfs-path}"
> version="1.0.0"
> expires-seconds="${mapserver.cache.expiry-time}"/>
>
> Regards,
>
> --------------------
> Luca Morandini
> www.lucamorandini.it
> --------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
Re: C.2.2 Properties in the sitemap
Posted by Luca Morandini <lm...@ieee.org>.
Robin Wyles wrote:
>
> Is it possible to use configuration properties defined in
> /META-INF/cocoon/properties within a sitemap?
Yes.
> Is there an input module
> that does this, or can the new expression language block be used?
No input modules needed for this. It would be fine to use expressions
across the board (from JXTemplates to sitemaps) but this has not yet
been implemented.
Here's sample properties file and sitemap fragments:
mapserver.wms-path=/geoserver/wms
mapserver.wfs-path=/geoserver/wfs
mapserver.map-format=image/png
mapserver.cache.expiry-time=3600
mapserver.map-transparent=false
mapserver.map-bgcolor=0xffffff
app.mapserver2appserver=localhost:8080
app.appserver2mapserver=localhost:8080
app.path=/geoid-samples
<map:reader name="wmsmcsld"
src="org.cocoondev.geoid.reading.WMSSLDReader" logger="geoid"
mime-type="${mapserver.map-format}" path="${mapserver.wms-path}"
server="${app.appserver2mapserver}"
sld-path="http://${app.mapserver2appserver}${app.path}/"
wfs-path="http://${app.appserver2mapserver}${mapserver.wfs-path}"
version="1.0.0"
expires-seconds="${mapserver.cache.expiry-time}"/>
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org