This actually does get me some of the information. Unfortunately since I'm sticking another servlet (my action) in between, the exception acts like it's coming from my action. So it appears I may have to go the route of extending the ExceptionHandler. I was hoping there was a way to avoid that, but it doesn't appear so.
Preston >>> [EMAIL PROTECTED] 10/3/2005 5:03:30 PM >>> On 10/3/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > > Oh I see, sorry. > > That would be a tomcat thing. I have a suspicion that there may never be > an exception. Tomcat (or your appserver) is just creating an error - > that doesn't mean that it actually threw a Java exception. That's not completely true. Or, more properly, the servlet container *must* forward information about an exception it catches (from the servlet) in well known request attributes as described in Section SRV.9.9 of the servlet spec. In particular, the following request attributes get exposed: * java.servlet.error.status_code (java.lang.Integer) * java.servlet.error.exception_type (java.lang.Class) * java.servlet.error.message (java.lang.String) * java.servlet.error.exception (java.lang.Throwable) -- Servlet 2.3 or later * java.servlet.error.request_uri (java.lang.String) * java.servlet.error.servlet_name (java.lang.String) In short, if your error handling servlet is invoked, it may rely on request attributes with these names to gain access to information about the error that occurred. Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]