Hiya,
I'm not sure if it's considered best practice, but I've just
successfully used the XSPUtil.includeSource method. The following is
similar, but returns a string representation of the pipeline output (I
think):
XSPUtil.getSourceAsString("cocoon://PIPELINEGOESHERE", resolver);
And the name space is
xmlns:xsp-util="http://apache.org/xsp/util/2.0"
If you look in the XSP Util class def, you'll see a lot more about it.
You'll see the java-doc for it under:
org.apache.cocoon.components.language.markup.xsp.XSPUtil
If you're wanting to send the results of a pipeline via an email -
getting it into a string is one way :)
Also, refer to this email:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104644496213491&w=2
HTH,
Corin
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 25 February 2004 10:29 p.m.
To: [EMAIL PROTECTED]
Subject: RE: record pipeline result
As requested by Geoff, I'll update the information:
> Well, I mentioned processPipelineTo and the non-existent
> PipelineHelper. I think though I was referring to
> org.apache.cocoon.components.flow.util.PipelineUtil. You may want to
> dig through the archives on the dev list for references to these two.
> As they overlap, it seems likely one is being phased out/deprecated
> already. If I had to bet, I'd bet processPipelineTo is being phased
out
> in favor of PipelineHelper.
> HTH,
> Geoff
I looked through the archives and found this one to be the most helpful:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107278564007409&w=2
Bye, Helma
> -----Original Message-----
> From: Geoff Howard [mailto:[EMAIL PROTECTED]
> Sent: Sunday, 08 February 2004 00:01
> To: [EMAIL PROTECTED]
> Subject: Re: record pipeline result
>
>
> Thorsten Mauch wrote:
>
> > Hi
> > My application needs to send the the result of a pipeline as mail.
> > Is it possible to call a pipleline with a (faked ) request object
> > and the save the output stream ?
>
> There is the sendmail action, xsp logicsheet, and I think also
> transformer. With the cocoon protocol you essentially create a
> sub-request in which you can specify the parameters. Also
> take a look
> at processPipelineTo in flow, and the PipelineHelper in 2.1
> for what is
> probably cleaner way to accomplish side-effects of a request.
>
> Geoff
>
>
> ---------------------------------------------------------------------
> 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]
================================================================
CAUTION: This e-mail and any attachment(s) contains information
that is intended to be read only by the named recipient(s). It
may contain information that is confidential, proprietary or the
subject of legal privilege. This information is not to be used by
any other person and/or organisation. If you are not the intended
recipient, please advise us immediately and delete this e-mail
from your system. Do not use any information contained in it.
================================================================
For more information on the Television New Zealand Group, visit
us online at http://www.tvnz.co.nz
================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]