Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 62914 invoked by uid 500); 27 Mar 2002 15:28:22 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 62901 invoked from network); 27 Mar 2002 15:28:22 -0000 Message-ID: <3CA1E43B.9020501@anyware-tech.com> Date: Wed, 27 Mar 2002 16:24:43 +0100 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en, fr MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: New : internal redirects with "cocoon:" URIs Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi team, I implemented internal redirects using the "cocoon:" pseudo-protocol. This is the Cocoon-equivalent to servlet request forwarding. This means that writing 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:sylvain@apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org