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

From: "Jay Freeman \(saurik\)" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Re: new Request for internal map:redirect-to's?
Date: Mon, 18 Aug 2003 01:49:40 -0500

Sonny:

I was under the impression that not only does a new Request object get
created, but the entire process does. AFAIK redirect-to sends a Location:
header to the browser and then it requests the new URL. *Checks this.*

Yeah:

HTTP/1.1 302 Moved Temporarily
Date: Mon, 18 Aug 2003 06:52:28 GMT
Server: Apache/2.1.0-dev (Unix) mod_ssl/2.1.0-dev OpenSSL/0.9.7a DAV/2
mod_jk/1.2.3-dev SVN/0.26.0 PHP/4.3.2
X-Cocoon-Version: 2.1
Location: http://www.jayfreeman.com/lists/
Content-Length: 0
Content-Type: text/plain; charset=ISO-8859-1

Sincerely,
Jay Freeman (saurik)
[EMAIL PROTECTED]

----- Original Message -----
From: "Sonny Sukumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 17, 2003 9:11 PM
Subject: new Request for internal map:redirect-to's?


>
> Does anybody know if a new Request instance is created when one does an
> internal redirect. Like this:
>
> <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.
>
> Btw, I'm using Cocoon 2.1.
>
> Thanks,
>
> Sonny
>
> P.S. Does anybody know how to get LogFactor5 to *not* spawn so many
> windows? And I can't close them either. Otherwise, it's a good tool. :-)



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to