cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kjetil Kjernsmo <Kjetil.Kjern...@computas.com>
Subject Redirecting with 303
Date Thu, 07 Aug 2008 14:10:44 GMT
Hi all!

I want to do a 303 redirect, to satisfy the httpRange-14 TAG finding, with its 
popular form http://www.w3.org/TR/cooluris/#r303gendocument

I was hoping something like this might work:

      <map:match pattern="topic/*">
	<map:redirect-to uri="{request:contextPath}/sparql?query=DESCRIBE &lt;
{request:requestUri}&gt;"/>
	<map:serialize status-code="303"/>
      </map:match>

where the URI needs to be the whole thing, including the hostname and all. I 
guess that the latter can be fixed some way by concatenating some parameters. 

And I hope the 303 would be fixed by the <map:serialize status-code="303"/>
but it doesn't, it does a 302. 

Is there a simple way to achieve this? 

If no simple way, what would the difficult way be?

Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Direct: +47 6783 1136 | Mobile: +47 986 48 234
Email: kjetil.kjernsmo@computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | 
Fax:+47 6783 1001


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


Mime
View raw message