thanks, that looks like what i need. thanks for all your other
suggestions too.

-----Original Message-----
From: Guido Casper [mailto:[EMAIL PROTECTED]
Sent: 03 December 2003 19:33
To: [EMAIL PROTECTED]
Subject: Re: [flow] accessing the real HttpServletRequest


Paul Crabtree wrote:
> Hi,
>
> I'm trying to get access to the real HttpServletRequest from inside
> Flow because i need to suck in the contents of a post into a Document
> using getInputStream().
>
> There doesnt seem to be a cocoon equivalent and in the
> StreamGenerator, which has similar functionality it gets the real
> request from the ObjectModel, something i cant seem to get either
> from within Flow.
>
> Can anyone suggest a method for doing this?

If you are fine with StreamGenerator,

var resolver =
cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.
ROLE);
var source =
resolver.resolveURI("cocoon:/pipelineContainingStreamGenerator");
var is = source.getInputStream();

should work.

HTH
Guido


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_____________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed
Scanning Services - powered by MessageLabs. For further information
visit http://www.mci.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to