Just keep in mind that the new page has the same
external URI as the page that referred it.

> -----Original Message-----
> From: Sylvain Wallez [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, March 27, 2002 10:25 AM
> To: [EMAIL PROTECTED]
> Subject: New : internal redirects with "cocoon:" URIs
> 
> 
> Hi team,
> 
> I implemented internal redirects using the "cocoon:" pseudo-protocol. 
> This is the Cocoon-equivalent to servlet request forwarding.
> 
> This means that writing
>   <map:match pattern="">
>     <map:redirect-to uri="cocoon:/index.html"/>
>   </map:match>
> will make a recursive call on the current processor to serve 
> "index.html" without going back to the client browser.
> 
> This is also available in the Redirector used by actions. And 
> as usual, 
> "cocoon:/xxx" uses the current sitemap, and "cocoon://xxx" 
> uses the root 
> sitemap.
> 
> This feature will be especially usefull with the flow engine, 
> since the 
> flow script chooses the page that comes next and should be 
> able to call 
> this page without losing business data that may be stored as request 
> attributes.
> 
> This is implemented in 
> org.apache.cocoon.environment.ForwardRedirector 
> and used for now only by the treeprocessor (so I didn't update the 
> samples to avoid to break them). Integration with the compiled engine 
> should be fairly easy, but I'm sooo late on my paid work, so 
> any takers 
> are welcome.
> 
> Enjoy,
> Sylvain
> 
> -- 
> Sylvain Wallez
>   Anyware Technologies                  Apache Cocoon
>   http://www.anyware-tech.com           mailto:[EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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

Reply via email to