Hi, I'm using Annotation Based controller. How do i get the model of the controller inside the HandlerExceptionResolver.resolveException ????
Hi, I'm using Annotation Based controller. How do i get the model of the controller inside the HandlerExceptionResolver.resolveException ????
What is it that you want to do exactly? There is no generic way on retrieving the Model because there doesn't have to be one. In most cases the exception gets thrown BEFORE the ModelAndView object can get constructed so no proper Model and/or View object is available.
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan
When the exception is thrown the ModelAndView was already created.
Here is what I'm trying to do:
When an un-handled exception happens and is thrown by the controller, the HandlerExceptionResolver.resolveException will send a notification to the application development team containing the session,request and exception data. Only data I could not get is the Model.