Re: Best practice for Capturing JSP Errors

2006-02-03 Thread Mott Leroy
Len Popp wrote: You can use an directive in web.xml to send uncaucht exceptions to an error page: java.lang.Exception /error Thanks Len, but I want to do more than catch them, I want to also report on them -- is the exception accessible on the resulting page?

Re: Best practice for Capturing JSP Errors

2006-02-03 Thread Len Popp
On 2/3/06, Mott Leroy <[EMAIL PROTECTED]> wrote: > Glen Mazza wrote: > > >> And another is to define the error page in your web.xml: > >> > >> > >> 500 > >> /myPage.jsp > >> > >> > > > > I would save these for generic HTTP error codes, or generic Java > > exceptions (NullPointerErrors,

Re: Best practice for Capturing JSP Errors

2006-02-03 Thread Mott Leroy
Glen Mazza wrote: And another is to define the error page in your web.xml: 500 /myPage.jsp I would save these for generic HTTP error codes, or generic Java exceptions (NullPointerErrors, ClassCastExceptions, perhaps), things are more likely the result of errors in coding than

Re: Best practice for Capturing JSP Errors

2006-02-02 Thread Glen Mazza
Mott Leroy wrote: I am on Tomcat 5.0.x I am familiar with a couple ways to capture errors that occur on the JSP side. One way is to use the error page tag: <%@ page errorPage="MyErrorPage.jsp" %> Chapter 10 on exception handling, Beginning JavaServer Pages (Wrox Books, 2005), I think wou

Best practice for Capturing JSP Errors

2006-02-02 Thread Mott Leroy
I am on Tomcat 5.0.x I am familiar with a couple ways to capture errors that occur on the JSP side. One way is to use the error page tag: <%@ page errorPage="MyErrorPage.jsp" %> And another is to define the error page in your web.xml: 500 /myPage.jsp I've inherited a vast