Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

ClassCastException:MultipartRequestWrapper

sunilmitta

2008-08-24

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi all,

I know that this is an old problem but i couldnt get the solution
anywhere.It would be good if you could direct me one.
I get the
ClassCastException(ClassCastException:org.apache.struts.upload.MultipartRequestWrapper)
when i try to forward the a Multipart form request(I use this to upload
file).
I understand that the request in no more a normal httpServletRequest but is
wrapped using multipartRequestWrapper.

I have tried the below but it doesnt help.

// Unwrap the multipart request, if there is one.
if (request instanceof MultipartRequestWrapper)
{
     request = ((MultipartRequestWrapper) request).getRequest();
}

I am using struts 1.1 as i am supposed to it, not a higher version.

Thanks and regards,
Sunil

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.