Having read this, I should add to my earlier email
that cocoon has it's own environment wrappers around
the request and that wrapped request is what has the
FilePart object.  So you'd use: 

import org.apache.cocoon.environment.Request ;
import org.apache.cocoon.Constants;
...
  Request request =
(Request)objectModel.get(Constants.REQUEST_OBJECT);

And yes, this is different from the standard
HttpServletRequest - see javadocs.

Geoff

--- Oskar Casquero <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Is there any alternative to HttpServletRequest
> request = (HttpServletRequest)
>
objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT);
> ? What type of object does
> objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT)
> return? I'm having problems with this declaration
> and I think that servlet's HttpServletRequest and
> HttpServletRequest request = (HttpServletRequest)
>
objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT);
> aren't totally equivalent. Do you agree?
> 
> Thanks,
> Oskar
> 


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

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

Reply via email to