cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo <agalla...@agssa.net>
Subject Re: Using the output of a pipeline to call another pipeline?
Date Sun, 02 Oct 2005 03:07:26 GMT
Derek Hohls wrote:

>(Just on the side here - sorry to disrupt the thread - I would
>echo the support for more detailed info - tutorial + sets of 
>examples would be *really* good - for creating Actions using
>Javascript  - this would open up an area of Cocoon for us 
>non-Java gurus - Thanks...) 
>
>  
>
>>>>my.name.is.hans@gmail.com 2005/09/30 09:09:10 AM >>>
>>>>        
>>>>
>Thank's for the replies,
>Both using an action, and using a flowscript seem promising, but also
>problematic.
>
>For the flowscript solution to work, I need to read the xQuery result
>from a cocoon pipeline. Unfortunately, cocoon.processPipelineTo() does
>not work as in this example:
>readImage() {
>// get request uri in here somehow
>var realfile =
>cocoon.processPipelineTo("flow/locateimage"+cocoon.getRequestUri());
>
>//parse response
>var realFilename = getFilenameFromResponse(realfile);
>
>Cocoon.sendPage("flow/readimage/"+realFileName");
>}
>processPipelineTo wants an outputstream to send the response to,
>rather than storing it in a variable, as I need to do. Is there a way
>around this?
>  
>
You can also use a more specific methods instead of processPipelineTo(). 
See:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/flow/util/PipelineUtil.html

Best Regards,

Antonio Gallardo.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message