cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: new Request for internal map:redirect-to's?
Date Mon, 18 Aug 2003 10:55:47 GMT
Sonny Sukumar wrote:
...

> Anyhow, with all that said, my original question still stands:  Is a 
> new Request instance still produced when such an internal redirect is 
> handled?  See my sitemap snippet below:
>
> <map:match pattern="someUri">
>  <map:action type="some-action"/>
>  <map:redirect-to uri="cocoon:/anotherUri"/>
> </map:match>
>
> <map:match pattern="anotherUri">
>  ...
> </map:match>
>
> In the "some-action" action, I set a Request attribute, which is gone 
> by the time "anotherUri" produces output.  I know it is being set 
> properly since I've logged it and it looks fine. 

 From a cursory look at the code, it seems that the query string should 
survive, but I'm not so sure about form parameters. Do you use POST or 
GET? If you use POST, can you switch to GET and see if it now works?

Regards, Upayavira

>> From: "Jay Freeman \(saurik\)" <saurik@saurik.com>
>> Reply-To: users@cocoon.apache.org
>> To: <users@cocoon.apache.org>
>> Subject: Re: new Request for internal map:redirect-to's?
>> Date: Mon, 18 Aug 2003 03:03:50 -0500
>>
>> Sonny:
>>
>> Oh, I'm sorry, I didn't even pay attention to that. :(
>>
>> Sincerely,
>> Jay Freeman (saurik)
>> saurik@saurik.com
>>
>> ----- Original Message -----
>> From: "Sonny Sukumar" <ahimsadesi@hotmail.com>
>> To: <users@cocoon.apache.org>
>> Sent: Monday, August 18, 2003 2:19 AM
>> Subject: Re: new Request for internal map:redirect-to's?
>>
>>
>> >
>> > It's not supposed to send an HTTP redirect if using the "cocoon:/"
>> protocol
>> > and syntax--at least not in Cocoon 2.1.  I checked headers and all, 
>> but I
>> > don't see my browser processing a redirect at all like I did using the
>> same
>> > syntax in 2.0.4.
>> >
>> > In any case, maybe one of the people knowledgeable on 2.1 can comment?
>> > Geoff, anyone else?
>> >
>> > Sonny
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>



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


Mime
View raw message