You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Don Brown <mr...@twdata.org> on 2006/04/12 04:18:55 UTC
[action2] Problem reports for configuration errors
I just added a feature to Action 2, which when in devMode, displays a helpful problem report whenever a configuration
error occurs. This report includes the error message, the location information (resource uri, line and column numbers),
the stacktraces, and a snippet of the offending file with the line and column highlighted.
Still to do:
- Refactor this out of DispatcherUtils so that other parts of the code can use it
- Add CSS styling and Javascript features like collapsible stacktraces
- Extend it to show snippets of Java errors as well, possibly extracting information from the stacktrace and showing a
snippet if the source is on the classpath.
Here is the problem report as a static file:
http://www.twdata.org/dakine/error.html
Don
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: [action2] Problem reports for configuration errors
Posted by tm jee <tm...@yahoo.co.uk>.
Wow.... that's impressive Don.. :-)
----- Original Message ----
From: Don Brown <mr...@twdata.org>
To: Struts Developers List <de...@struts.apache.org>
Sent: Wednesday, 12 April, 2006 10:18:55 AM
Subject: [action2] Problem reports for configuration errors
I just added a feature to Action 2, which when in devMode, displays a helpful problem report whenever a configuration
error occurs. This report includes the error message, the location information (resource uri, line and column numbers),
the stacktraces, and a snippet of the offending file with the line and column highlighted.
Still to do:
- Refactor this out of DispatcherUtils so that other parts of the code can use it
- Add CSS styling and Javascript features like collapsible stacktraces
- Extend it to show snippets of Java errors as well, possibly extracting information from the stacktrace and showing a
snippet if the source is on the classpath.
Here is the problem report as a static file:
http://www.twdata.org/dakine/error.html
Don
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org