--- On Tue, 12/16/08, red phoenix wrote:
> [...]
> MultiPartRequestWrapper multipartRequest =
>     (MultiPartRequestWrapper) ServletActionContext.getRequest();
> [...]
> 
> org.apache.struts2.dispatcher.StrutsRequestWrapper cannot be cast to
> org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper
> 
> Why raise above error?

Because StrutsRequestWrappers can't be cast to MultiPartRequestWrappers.

> How to correct it?

Use the built-in file upload capabilities of Struts 2; there's no reason to 
access the request manually.

Here's that link again:

http://struts.apache.org/2.0.14/docs/how-do-we-upload-files.html

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to