> Hi Chris,
> I have followed with interest Alireza & Richards problem and solutions
> for capturing stacktrace. I tried the solution suggested by you first
> using the following code within a JSP page
>
> PipedWriter pipeOut = new PipedWriter();
> PipedReader pipeIn = new PipedReader(pipeOut);
> exception.printStackTrace(new PrintWriter(pipeOut));
> BufferedReader br = new BufferedReader(pipeIn);
> String inputStr;
> while((inputStr = br.readLine()) != null)
> ...and so on.
> The program breaks down while attempting
> exception.printStackTrace(new PrintWriter(pipeOut));
>
> I wonder what I am doing wrong?
> Any help would be much appreciated.
> with regards
>
> Gamini de Alwis
> mailto:[EMAIL PROTECTED]
> Software Developer
> Business Manager Software
> Tel (03) 9813 3022. Fax (03) 9882 5887
>
>
>
> -----Original Message-----
> From: Christian Roslawski [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 30, 2001 5:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: jsp error page in email
>
>
> 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
>
>
> Gamini de Alwis
> mailto:[EMAIL PROTECTED]
> Software Developer
> Business Manager Software
> Tel (03) 9813 3022. Fax (03) 9882 5887
>
>
===========================================================================
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