AFAIK, internal redirect is only implemented for the interpreted sitemap
(treeprocessor),
and 2.0.x uses the compiled sitemap by default.

>From http://xml.apache.org/cocoon/changes.html for 2.0.3:

        Handle request forwarding (aka internal redirects) using the
"cocoon:" pseudo-protocol : writing <map:redirect-to
uri="cocoon:/foo.bar"/> makes a recursive call on the current sitemap
without going back to the browser (as usual, "cocoon://foo.bar" uses the
root sitemap). This also keeps any data that have been stored as request
attributes. Note: this is only available in the interpreted sitemap
engine for now, and will come soon on the compiled engine. (SW) 

You need to dig into cocoon.xconf to change the <sitemap> configuration.
(I tried that with 2.0.3 but had then other problems like inheritance in
subsitemaps not working.
Since then I am staying an 2.1dev where the treeprocessor is the default
and working fine.)

HTH, Alfred.

-----Original Message-----
From: Timothy Larson [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 7. Januar 2003 22:48
To: [EMAIL PROTECTED]
Subject: Re: [BUGS] cocoon 2.0.4 map:redirect-to


Hello Joerg,

I say we have a bug because of loss of functionality.

If <map:call.../> is for internal redirects and
<map:redirect-to.../> is for client-side redirects,
then can we at least have <map:call uri="cocoon:/some-uri"/>
for internal redirects to uri's?

Summary:
Client-side redirect to uri: <map:redirect-to uri=""/>
(Removed in 2.0.4) Internal redirect to uri: <map:redirect-to
"cocoon:/..."/>
(Proposed)Internal redirect to uri: <map:call uri="cocoon:/..."/>
Internal redirect to resource: <map:call resource=""/>
Backward-compatible internal redirect to resource <map:redirect-to
resource=""/>

Tim

PS: My problem with the web page was just spelling.
"map:redirect" should have been spelled "map:redirect-to".

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

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

Reply via email to