cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: [SITEMAP] Parametrized redirect
Date Wed, 03 Apr 2002 07:46:03 GMT
Konstantin Piroumian wrote:

>>-----Original Message-----
>>From: Sylvain Wallez [] 
>>Sent: Tuesday, April 02, 2002 10:35 PM
>>Subject: Re: [SITEMAP] Parametrized redirect
>>Konstantin Piroumian wrote:
>>>Good evening!
>>>How difficult would be to redesign <map:redirect-to /> to allow 
>>><map:redirect-to uri="...">
>>>	<map:parameter name="p1" value="1" />
>>>	...
>>Aren't you looking for <map:redirect-to 
>>uri="other-uri?p1=1&p2={sitemapvariable}"/> ?
>Yes, this would do, but <map:parameter /> looks better, IMO.
>I've took a look at redirection interface and it seems that adding one more
>method that takes also a parameter map will be enough for redirection. But I
>have no yet idea how would the receiving pipeline (or resource) handle those
>parameters. It must be something similar to 'target' attribute. 

Be careful : redirect to URI results in a new request being processed 
and so loses the sitemap variables, while redirect to resources occurs 
internally in the current sitemap. Because of this confusion, redirect 
to resource was deprecated in favor of map:call.

Thus all we can do with parameters in map:redirect is encode them as 
request parameters. So it's really a matter of readability...


Sylvain Wallez
  Anyware Technologies                  Apache Cocoon 

To unsubscribe, e-mail:
For additional commands, email:

View raw message