What if I am using Servlet and the output is an output stream to the
browser, (which means I cannot see the DOS or Java Console window). Or
how can I redirect the System.out to anther output stream? Or if I use
System.out.println, where does it print? to a log file?

Thank you!

Xizhen

John Weirich wrote:
>
> Like this:
>
>   catch (IOException e) {
>    System.out.println("Problem reading line from input file. " + e);
>    e.printStackTrace();
>   }
>
> -jw
>
> "Mishra, Sunil" wrote:
>
> > print the stack trace in the catch block.
>
> --
> stay fun.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to