Java Server Pages Hints and Tips


Output stacktrace

<%@page isErrorPage="true" %>
<%@page import="java.io.PrintWriter" %>
<%
out.println("<pre>");
exception.printStackTrace(new PrintWriter(out));
out.println("</pre>");
%>

-- Frank Dean - 06 Jan 2004