I've been learning JSP with this great book from manning.com and
I've been trying to write an error page. According to the book, I should
be able to do the following:
<%@ page isErrorPage="true"%>
<h1>The following error has been detected:</h1>
<b><%= exception %></b<br>
<% exception.printStackTrace(out); %>
However, when I try this I get the following:
gpdk/_0002fjsp_0002ferror_0002ejsperror_jsp_14.java:143: Incompatible
type for method. Can't convert javax.servlet.jsp.JspWriter to
java.io.PrintWriter.
exception.printStackTrace(out);
^
1 error
What's the secret to printing a stack trace to the page?
Thanks, Jason
--
Jason Novotny [EMAIL PROTECTED]
Home: (510) 704-9917 Work: (510) 486-8662
NERSC Distributed Computing http://www-didc.lbl.gov
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]