> -----Original Message----- > From: Kjetil Kjernsmo [mailto:[EMAIL PROTECTED] > Sent: donderdag 7 augustus 2008 16:11 > To: [email protected] > Subject: Redirecting with 303 > > 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 < > {request:requestUri}>"/> > <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?
After a map:redirect-to the pipeline ends its execution. The map:serialized will not be called. Setting status-code="303" on the map:redirect-to is not (yet) supported. Doesn't a 302 do what you want to achieve? Jasha Joachimsthal www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-3329 +1 (707) 773-4646 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
