tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mott Leroy <m...@acadaca.com>
Subject Best practice for Capturing JSP Errors
Date Thu, 02 Feb 2006 20:36:17 GMT
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:

<error-page>
  	<error-code>500</error-code>
   	<location>/myPage.jsp</location>
</error-page>

I've inherited a vast number of JSP pages that use neither. Now they'd 
like to implement functionality to capture *and report* on errors that 
happen on these JSP pages.  What's the best way to achieve this 
functionality? Can error pages defined the second way report on the 
specific error thrown in the same way that the first one can?

Thanks -

Mott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message