|
From: Sebastian S. <seb...@op...> - 2004-05-05 17:15:56
|
I have, that wasn't the problem, but you guided me to the bug. I tried to
use my Controller for all request, even non-multipart http-request. Stupid.
Thank you,
Sebastian
-----Ursprüngliche Nachricht-----
Von: spr...@li...
[mailto:spr...@li...]Im Auftrag
von Bronwen Cassidy
Gesendet: Mittwoch, 5. Mai 2004 18:00
An: spr...@li...
Betreff: Re: [Springframework-developer] (MultipartHttpServletRequest)
request ClassCastException
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
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|