You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Tsui, Alban" <Al...@COGNOS.com> on 2003/10/27 13:17:57 UTC
using selector and ?
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
Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos
Business Forum. Taking place in over 25 cities around the world, it's an
opportunity for Business and IT leaders to learn about strategies for
driving performance. Visit http://www.cognos.com/enterprise03 for more
details.
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.
Re: using selector and ?
Posted by Joerg Heinicke <jh...@virbus.de>.
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