Hi Florian, I created a utility flowscript function I have been using for the last year without problems. This executes a cocoon pipeline (or any other resource available) and returns a Dom with the result. So if you want anything other than Xml results, you will have to modify it.
function loadDocument(uri) { // AE: cocoon:// var parser = null; var source = null; var resolver = null; try { parser = cocoon.getComponent(DOMParser.ROLE); resolver = cocoon.getComponent(SourceResolver.ROLE); source = resolver.resolveURI(uri); if (source.getClass().getName().equals("org.apache.cocoon.components.source.impl.SitemapSource") == false) { print("Warning: loadDocument received an incorrect URI:"); print(" " + source.getClass().getName()); } var is = new InputSource(source.getInputStream()); is.setSystemId(source.getURI()); return parser.parseDocument(is); } finally { if (source != null) resolver.release(source); cocoon.releaseComponent(parser); cocoon.releaseComponent(resolver); } } Hope this helps. Regards, Chris -----Ursprüngliche Nachricht----- Von: Dev at weitling [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 10. Oktober 2006 18:01 An: Users at Cocoon Betreff: Pipeline result in a flowscript? Hi! What's the best way to get the result of a pipeline for further processing in a flowscript? Something like String s = cocoonmagic.getPipelineResult("mypipe"); cocoon.processPipelineTo looks a little bit like overkill with its bean and stream parameters. Or: Effectively I just want to get one value from a JDBC connection. Just one lonely integer... Thx, Florian --------------------------------------------------------------------- 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]