Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 63589 invoked by uid 500); 21 Jan 2003 08:37:40 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 63578 invoked from network); 21 Jan 2003 08:37:40 -0000 Date: Tue, 21 Jan 2003 09:37:28 +0100 To: cocoon-users@xml.apache.org, Jim McCullough Subject: Re: XSP Redirection HELP!!! Message-ID: <20030121083728.GA1165@bremen.dvs1.informatik.tu-darmstadt.de> Reply-To: haul@informatik.tu-darmstadt.de References: <01d601c2c0f3$69efe2f0$0201a8c0@mickey> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01d601c2c0f3$69efe2f0$0201a8c0@mickey> Organization: Databases and Distributed Systems Group, Darmstadt University of Technology User-Agent: Mutt/1.5.3i From: Christian Haul X-MailScanner: Found to be clean X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N On 20.Jan.2003 -- 06:18 PM, Jim McCullough wrote: > Don't know if this is what you are looking for but you > can also use the sendRedirect (String url) of the > HttpResponse object. > > Would look something like this: > > > ((HttpResponse)response).sendRedirect ("http://my_home_page"); > > > This is kinda clunky because it sends the response header back > to the browser but it does the job from within XSP. There is also a logicsheet for that -- response.xsl. Please be aware that sending a redirect command to the client *after* any other data will cause an unpredictable result. This is because the output is not buffered and thus cannot be cancelled. It is almost impossible for the redirect to be the first data sent. So, I would strongly suggest not to do it. If you *do* want to update the database from an XSP, you have to merge all possible outcomes into one page. *I* would consider that extremely bad practice. HTH Chris. -- C h r i s t i a n H a u l haul@informatik.tu-darmstadt.de fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: