cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Lucas-Smith <>
Subject Flowscript and POST's
Date Mon, 22 Dec 2003 01:05:07 GMT

I'm new to this crowd and I'm no Cocoon expert.
I've just started to play with the flowscript part of Cocoon and have
found it very interesting.

I've got an immediate use I can put it to in one of my company's
projects, but my lack of understanding has left me with a problem.

I have a situation where Cocoon is the web front end to a backend
system. Cocoon requests XML from the backend system.
I have some XSLT that outputs input forms against the XML's original
data and allows the user to POST in changes to the document.

I'd like to use flowscript to switch which page the user sees
depending on the success/failure of the backend operation.

Thus far I have:

<match pattern="**/*.form">
       <call function="submit">
             <parameter name="actionurl"
             <parameter name="success" value="success.html"/>
             <parameter name="failure" value="../{1}/{2}.html"/>

function submit() {
         var result = new;
         cocoon.processPipelineTo(cocoon.parameters.actionurl, {},
         result = result.toString();

The POST goes to the .form match which then calls the flowscript.
Unfortunately, there doesn't appear to be an obvious way to POST on
this POST to the backend pipeline, which I was hoping to do using
processPipelineTo with my actionurl parameter.

Has any one got any idea how I can 'push' that POST on to my backend


Michael Lucas-Smith
Research and Development
Wizard Information Services, Australia

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message