I am getting MaxUploadSizeExceededException as shown below, when i am trying to upload a file with size more than the one set in the servlet.xml.(A known occurrence)

Question:
Since the exception is thrown before the control reaches the Controller we are not able to pass back the values submitted by the user like firstname, lastname along with the file.

Is there a way i can redirect the user back to the same form page where he submitted the values and also pass back the values he submitted.


Error Logs

org.springframework.web.util.NestedServletExceptio n: Request processing failed; nested exception is org.springframework.web.multipart.MaxUploadSizeExc eededException: Maximum upload size of 100 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeL imitExceededException: the request was rejected because its size (106335) exceeds the configured maximum (10)
org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:583)
org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:511)
javax.servlet.http.HttpServlet.service(HttpServlet .java:637)
javax.servlet.http.HttpServlet.service(HttpServlet .java:717)

root cause

org.springframework.web.multipart.MaxUploadSizeExc eededException: Maximum upload size of 10 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeL imitExceededException: the request was rejected because its size (106335) exceeds the configured maximum (10)
org.springframework.web.multipart.commons.CommonsM ultipartResolver.parseRequest(CommonsMultipartReso lver.java:169)
org.springframework.web.multipart.commons.CommonsM ultipartResolver.resolveMultipart(CommonsMultipart Resolver.java:149)
org.springframework.web.servlet.DispatcherServlet. checkMultipart(DispatcherServlet.java:1015)
org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:851)
org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:807)
org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:511)
javax.servlet.http.HttpServlet.service(HttpServlet .java:637)
javax.servlet.http.HttpServlet.service(HttpServlet .java:717)