|
From: <bro...@ya...> - 2004-05-05 16:00:08
|
Hi Sebastian,
Do you have this: encType="multipart/form-data" in
your form tag??
--- Sebastian Szczygiel <seb...@op...> wrote: >
Hello,
>
> inside a simple Spring-Controller i try this:
>
> public ModelAndView handleRequest(HttpServletRequest
> request,
> HttpServletResponse response) throws
> ServletException, IOException {
> ...
> MultipartHttpServletRequest multipartRequest =
> (MultipartHttpServletRequest)
> request;
> ...
>
> Buy at (MultipartHttpServletRequest) request i get a
> ClassCastException,
> why?
> The MultipartResolver is loaded correctly. For this
> i use the following line
> in my application context XML:
>
> <bean id="multipartResolver"
>
class="org.springframework.web.multipart.commons.CommonsMultipartResolver"/>
>
> Lob Handler and so on is also defined in the XML. I
> looked at the imagedb
> example but can't find the problem in my code.
>
> Regards,
> Sebastian
>
>
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the
> market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the
> exam FREE.
>
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
>
https://lists.sourceforge.net/lists/listinfo/springframework-developer
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
|