cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan, Charlene" <>
Subject RE: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file
Date Wed, 25 Jun 2003 20:22:10 GMT
Let me try to explain my problem again. is only part of what I'm trying
to do. When "Send Email" button is clicked, an xml String named Foo is passed to pipeline
"processOrder" and a rtf file is generated.  Then pipeline "send" will send the rtf file as
an attachment.  "processOrder" has to happen before the "send".  I found a thread talking
about this
(pipeline dependencies).  But it is different from what I'm trying to do.  processOrder is
invoked only when <sendmail:attachment url="cocoon:///" name="processOrder"/> is called
from mail.xsp. So my question is how I can start "processOrder" pipeline and attach the result
to the "send" pipeline.  How can I chain these two pipelines together?  Or is it possible
to write the file to the server and then to get the attachment thereafter?  In either way,
I need to invoke processOrder first.  


<map:match pattern="send">
  <map:generate type="serverpages" src="mail.xsp" />
  <map:serialize />

<map:match pattern="processOrder">
     <map:generate type="stream">
       <map:parameter name="form-name" value="Foo"/>
     <map:transform src="context://stylesheets/system/simple-page2fo.xsl"/>
     <map:serialize type="fo2rtf"/>

On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote:
> When I click a "Send Email" button on the page, the application will create a rtf file
on the server, and then sendMail will send email to an email address entered by the user with
attachment of the rtf file and idealy the rtf file should be deleted from the server.  

See e.g.

C h r i s t i a n       H a u l
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

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

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

View raw message