cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: can you reach sitemap params from JXTemplate?
Date Fri, 22 Aug 2003 09:10:50 GMT
On Fri, 22 Aug 2003, Jeremy Quinn wrote:

> My sitemap looks like this:
>
> <map:component-configurations>
> 	<global-variables>
> 		<assetResository>/Library/Apache2/assets/</assetResository>
> 		<assetServer>http://iborg.local/assets/</assetServer>
> 		<pending>pending/</pending>
> 		<published>archive/</published>
> 		<removed>trash/</removed>
> 	</global-variables>
> </map:component-configurations>
>
> <snip/>
>
> <map:match pattern="*/*">
> 	<map:call function="main">
> 		<map:parameter name="action" value="{1}"/>
> 		<map:parameter name="id" value="{2}"/>
> 		<map:parameter name="uri" value="{0}"/>
> 		<map:parameter name="pendingJobRepository"
> 			 value="{global:assetResository}{global:pending}"/>
> 		<map:parameter name="pendingJobServer"
> 			 value="{global:assetServer}{global:pending}"/>
> 		<map:parameter name="publishedJobRepository"
> 			 value="{global:assetResository}{global:published}"/>
> 		<map:parameter name="publishedJobServer"
> 			 value="{global:assetServer}{global:published}"/>
> 		<map:parameter name="removedJobRepository"
> 			 value="{global:assetResository}{global:removed}"/>
> 	</map:call>
> </map:match>

Ok, the sitemap parameters specified on the flow pipeline are not
accessible from the view pipeline (you should have got an Exception "The
parameter 'status' does not contain a value"). The view pipeline gets
its on set of parameters IIRC.

--
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com


Mime
View raw message