I don't know what is the best approach .. We had to create a new Generator and a new Transformer for other reasons, but we successfully used the HttpServletRequest with this method. It is pretty easy to subclass standard generators and standard transformers, so i can tell you this approach works well.
> -----Message d'origine----- > De : Paul Crabtree [mailto:[EMAIL PROTECTED] > Envoy� : mercredi 3 d�cembre 2003 19:03 > � : [EMAIL PROTECTED] > Objet : RE: [flow] accessing the real HttpServletRequest > > > im not sure. i havent started yet, Bruce recommended i create one but im > confused as to whether this by a proper avalon componet or a generator > or something else entirely, whats the best approach? > > -----Original Message----- > From: Mathieu Jean-Luc [mailto:[EMAIL PROTECTED] > Sent: 03 December 2003 18:02 > To: [EMAIL PROTECTED] > Subject: RE: [flow] accessing the real HttpServletRequest > > > It depends of your class ... Which of Cocoon classes your class inherits > ? > Is it a generator class ? A transformer ? > > > -----Message d'origine----- > > De : Paul Crabtree [mailto:[EMAIL PROTECTED] > > Envoy� : mercredi 3 d�cembre 2003 18:59 > > � : [EMAIL PROTECTED] > > Objet : RE: [flow] accessing the real HttpServletRequest > > > > > > Thanks. can you also tell me how i can get access to the objectModel > > within my class? > > > > -----Original Message----- > > From: Mathieu Jean-Luc [mailto:[EMAIL PROTECTED] > > Sent: 03 December 2003 17:58 > > To: [EMAIL PROTECTED] > > Subject: RE: [flow] accessing the real HttpServletRequest > > > > > > Form setup method : > > > > > (HttpServletRequest)objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT) > > > > Regards, > > JL > > > > > -----Message d'origine----- > > > De : Paul Crabtree [mailto:[EMAIL PROTECTED] > > > Envoy� : mercredi 3 d�cembre 2003 12:29 > > > � : Cocoon Users (E-mail) > > > Objet : [flow] accessing the real HttpServletRequest > > > > > > > > > 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? > > > > > > Thanks in advance. > > > Paul. > > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > _____________________________________________________________________ > > 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] > > > > > > > > > > --------------------------------------------------------------------- > 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] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
