@ -996,12 +996,10 @@ public class DispatcherServlet extends FrameworkServlet {
@@ -996,12 +996,10 @@ public class DispatcherServlet extends FrameworkServlet {
@ -1013,9 +1011,12 @@ public class DispatcherServlet extends FrameworkServlet {
@@ -1013,9 +1011,12 @@ public class DispatcherServlet extends FrameworkServlet {
if(exMv.isEmpty()){
returnnull;
}
// We might still need view name translation for a plain error model...
if(!exMv.hasView()){
exMv.setViewName(getDefaultViewName(request));
}
if(logger.isDebugEnabled()){
logger.debug("Handler execution resulted in exception - forwarding to resolved error view: "+exMv,
ex);
logger.debug("Handler execution resulted in exception - forwarding to resolved error view: "+exMv,ex);