Greetings everyone! I´m having a problem with the MultipartHttpServletRequest when I try to save an object [Picture] I do´t know where is the problems because I´m doing the same thing with another objectFormController This is the error I get when I try to save... [action].invoke(250) | Servlet.service() para servlet action lanzó excepción java.lang.ClassCastException: org.acegisecurity.wrapper.SavedRequestAwareWrapper cannot be cast to org.springframework.web.multipart.MultipartHttpServletRequest at mx.edu.um.carz.webapp.action.PictureFormController.onSubmit(PictureFormController.java:60)
This is the part of my formController where I try to save an object and I cast the request to a MultipartHttpServletRequest... MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; if(multipartRequest.getFile("image") != null && multipartRequest.getFile("image").getSize() > 0){ picture.setImageType(multipartRequest.getFile("image").getContentType()); picture.setImage(multipartRequest.getFile("image").getBytes()); } Any ideas??? -- View this message in context: http://www.nabble.com/Problems-with-MultipartHttpServletRequest-tf3587532s2369.html#a10025612 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]