Hi Alireza,

> In my jsp error page I am sending en email to administrator mentioning the
> error. Is there any way to send the trace stack to
> this email?. exception.printStackTrace(...) show the stack on the screen
> with void return value . Is there any other way to get this stack.

You could use printStackTrace(PrintStream s) in conjunction with
java.io.PipedInputStream and java.io.PipedOutputStream. Close the
output stream before you start reading from the input stream.

  Chris

===========================================================================
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

Reply via email to