Author: tschneider
Date: Sat Feb 17 22:43:12 2007
New Revision: 508883
URL: http://svn.apache.org/viewvc?view=rev&rev=508883
Log:
WW-1702 - fixed error handling in dispatcher
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
URL:
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java?view=diff&rev=508883&r1=508882&r2=508883
==============================================================================
---
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
(original)
+++
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java
Sat Feb 17 22:43:12 2007
@@ -515,8 +515,7 @@
LOG.error("Could not find action or result", e);
sendError(request, response, context,
HttpServletResponse.SC_NOT_FOUND, e);
} catch (Exception e) {
- LOG.error("Could not execute action", e);
- sendError(request, response, context,
HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e);
+ throw new ServletException(e);
} finally {
UtilTimerStack.pop(timerKey);
}