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);  %>
</pre>

"Wendy Smoak" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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 <%@
include
> 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
to
> be the recursive printing -- a Throwable can contain a Throwable can
> contain... )
>
> <%@ taglib uri="http://java.sun.com/jstl/core"; 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to