Would anyone be willing to share a good error JSP to be used with the
error-page tag in web.xml?
What kinds of things do you typically show? Is there a way to capture the
stack trace with out showing it to the user? Maybe as an HTML comment below
a bunch of br's so they won't see it unless
Wendy Smoak wrote:
Would anyone be willing to share a good error JSP to be used with the
error-page tag in web.xml?
What kinds of things do you typically show? Is there a way to capture the
stack trace with out showing it to the user? Maybe as an HTML comment below
a bunch of br's so they won't
I use this page (hopefully attached) ...
Its not pretty but nice for debugging - but its not(and should not be) for
production either.
For production use - show a pretty page and log the rest somewhere. Maybe
showing an ID in case someone reports it, then a tech can look at the dump in
the
D'oh. Didn't make it. Here it is inline ... This is also a classic example of
everything ugly jsp ;) (But it works real nice for me) ...
-Tim
--start of page--
%@ page import=java.net.InetAddress
import=java.util.Enumeration %
%
Cookie[] cookies = request.getCookies();
String
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
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