cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <jheini...@virbus.de>
Subject Re: using selector and <map:mount>?
Date Mon, 27 Oct 2003 19:52:45 GMT
Hello Alban,

what do you really want to achieve. Mounting other sitemaps based on 
request parameters does not make really sense. Maybe you should redirect 
to the relevant pages.

Joerg

On 27.10.2003 13:17, Tsui, Alban wrote:

> Hi 
> 
> I want to set up my sitemap to something similar ot the following:
> 
> 
> <map:pipelines>
> 	<map:pipeline>
> 		<map:match pattern="gateway">
> 			<map:act type="characterencoding">
> 				<map:parameter name="form-encoding"
> value="utf-8"/>
> 			</map:act>
> 			<map:select type="request-parameter">
> 				<map:parameter name="parameter-name"
> value="app"/>
> 				<map:when test="userui">
> 					<map:mount src="userui/"
> check-reload="yes"/>
> 				</map:when>
> 				<map:when test="admin">
> 					<map:mount src="admin/"
> check-reload="yes"/>
> 				</map:when>
> 			</map:select>
> 		</map:match>
> 	</map:pipeline>
> </map:pipelines>
> 
> However this just doesn't compile and I got lot of java exceptions from the
> sitemap.
> 
> Is the above correct? I want to have a "gateway" pipeline and it will call
> use the correct subsitemap based on an request parameter. I am using
> cocoon2.0.3 currently.
> 
> Any help would be appeciated.
> 
> Alban


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message