use
<%
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
exception.printStackTrace(pw);
out.println(sw);
%>
in ur error page.In order to construct an error page add on the page
directive
<%@ page isErrorPage="true" import="java.io.*"%>
this would give u an default exception object which then can be used to
print the stack
With regards
Sachin Sharma
Siemens Information Systems Ltd.
Tower(B),Plot 6A, Sector 18
HUDA Area, Gurgaon,
Haryana,122015
Ph(O) +91-124-6343618 to 6343622
Extn : 2160
> -----Original Message-----
> From: Drew Nichols [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, January 24, 2001 9:55 AM
> To: [EMAIL PROTECTED]
> Subject: printStackTrace()
>
> How do I printStackTrace() from JSP pages??
> Thanks
>
> ======================================================================
> =====
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets