Wow.... that's impressive Don.. :-) ----- Original Message ---- From: Don Brown <[EMAIL PROTECTED]> To: Struts Developers List <dev@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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]