Gianluca Morello wrote:

Sounds good,

i'm calling the SWT pipeline from flow with redirectTo.
I tried also processPipelineTo from flow, but i don't know how to setup a
correct outputstream parameter.
A null outputstream parameter is invalid. I don't need to process the output
of the swt.

Do you have any example how to use processPipelineTo?


Well, having just replied, I realised that perhaps we're doing this all wrong. Why not do:

var resolver = cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE);
var source = resolver.resolveURI("URI for your modifiable source");
var outputstream = source.getOutputStream();
cocoon.processPipelineTo("page", outputstream);
resolver.release(source);


That way you don't need the SWT at all.

Regards, Upayavira

Thank you

Gianluca






----- Original Message ----- From: "Upayavira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 22, 2003 12:36 PM Subject: Re: SourceWriting Transformer: how to redirect after writing files?




Gianluca Morello wrote:



Hi all,

i have a pipeline i which i use a sourcewriting transformer to write a
xml file.

I wish to be able to redirect to a new page  after writing the file.
After the writing of the file i have on the browser the output
message of the sourcewriting transformer.

There's a way to do that?



Not sure if there is. I would suggest a couple of approaches:
1) Use XSLT to transform the result of the SWT into your desired page
for the user (could include a <meta http-equiv="refresh"> style redirect)
2) Use the Flow processPipelineTo to write your source, and then send
another page using sendPage

Regards, Upayavira



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








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







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



Reply via email to