struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sunilmitta <sunilmi...@gmail.com>
Subject Re: ClassCastException:MultipartRequestWrapper
Date Thu, 28 Aug 2008 16:01:27 GMT

Can anyone please help me with this?

Thanks and regards.
Sunil


sunilmitta wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/ClassCastException%3AMultipartRequestWrapper-tp19137444p19203669.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message