tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: Example error pages?
Date Fri, 30 May 2003 04:22:36 GMT
My own error-pages are designed to hide as much as possible from the
end-user (and write to the server-logs if necessary), so I'm not much help
here.  If you want to print the stack trace, the best I can think of is (for
a jsp error-page):
<pre class=error><!-- define the 'error' class in your css to your
formatting tastes. -->
<% exception.printStackTrace(out);  %>

"Wendy Smoak" <> wrote in message
> Tim wrote:
> > Here it is inline ... This is also a classic example of
> > everything ugly jsp ;) (But it works real nice for me) ...
> I have one of those, too... It's called 'debug.jsp' and it gets <%@
> file="debug.jsp" %>'ed on my tiles layout page so it shows up everywhere.
> Then when I deploy it's a single edit to make it disappear.
> Here's what I came up with, I was trying to get the error message onto the
> screen without frightening the user with a stack trace.  (Ideas on getting
> the stack trace into an HTML comment are still welcome, the problem seems
> be the recursive printing -- a Throwable can contain a Throwable can
> contain... )
> <%@ taglib uri="" prefix="c" %>
> <td class="label" align="center">
>   <c:out value="${requestScope['javax.servlet.error.message']}" />
>   <br>
>   If this error message persists, please contact the IRM Help Desk at ...
> </td>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message