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...)
[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to