Hi Luca,
i had the same problem on cocoon 2.1.1 passing parameters with
processPipelineTo in flow.
if you have still that problem
try this:
in flow:
out=new java.io.FileOutputStream("/tmp/out.xml");
cocoon.processPipelineTo("parseimdbtitle/tt0338466", null,out)
in the sitemap:
<map:match pattern="parseimdbtitletst/*">
<map:generate type="html" src="http://www.imdb.com/title/{1}" />
<map:serialize type="xml"/>
</map:match>
Best regards
Gianluca
----- Original Message -----
From: "Luca Morandini" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 29, 2003 12:58 PM
Subject: Re: request parameters and processPipelineTo?
> Joakim Verona wrote:
>
> > I tried pasting in your test pipeline in my sitemap, and it returns the
> > xml version of the imdb page as expected.
> >
> > <map:match pattern="parseimdbtitletst">
> > <map:generate type="html"
> > src="http://www.imdb.com/title/tt0338466" />
> > <map:serialize type="xml"/>
> > </map:match>
> >
> > So we are not having the exact same behaviour.
> >
> > Some questions for you:
> >
> > 1) Which version of cocoon are you running? I'm running 2.1.3 on sun
> > linux jdk 1.4.2_02
>
> Cocoon 2.1.2, JDK 1.4.1_01 on Windows 2000. Anyway, I've checked it
> again and still doesn't work
>
>
> > 2) When you send parameters to a pipeline from flowscript, do you use
> > {request-param:imdbtitle} to receive them?
>
> BTW, I've completely overlooked the reception of parameters in your
> sitemap (my bad :( ): you cannot, AFAIK, use them as request parameters,
> since they're Javascript objects.
>
> Instead, you should use the jpath logicsheet or JXTransformer or
> JXTemplate to use them. I'am afraid you have to change the logic of your
> application considerably.
>
> Regards,
>
> -----------------------------------
> Luca Morandini - GIS Consultant
> [EMAIL PROTECTED]
> http://xoomer.virgilio.it/ukmorand/
> -----------------------------------
>
>
>
> ---------------------------------------------------------------------
> 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]