Many Thanks Alfred. I'll try this.
Nathaniel Alfred <[EMAIL PROTECTED]> wrote:
Nathaniel Alfred <[EMAIL PROTECTED]> wrote:
I use this in actions:import org.apache.cocoon.environment.http:HttpResponse;...HttpResponse httpResponse = (HttpResponse)ObjectModelHelper.getResponse(objectModel);String redirectURI = ...;httpResponse.sendRedirect(redirectURI);I should also work in a generator but the pipeline will run through nevertheless.You have to short-cut your SAX output to be well-formed but as small as possible since the serialized output will be discarded by the browser.HTH, Alfred.-----Original Message-----
From: Kumar M [mailto:[EMAIL PROTECTED]
Sent: Montag, 8. Dezember 2003 20:02
To: [EMAIL PROTECTED]
Subject: redirectsHello!I have a custom generator which pulls contents from remote hosts based on requests and then transforms, serializes to html. This generator, at times based on the content pulled, has to redirect the requests to another url. However I realize Request can be redirected from only action or sitemap. Can someone tell if this is possible with cocoon 2 and how it can be done?Thankskumar
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing
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.
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing
