|
From: Sebastian S. <seb...@op...> - 2004-05-05 12:51:11
|
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
|