Read my debugging chapter in Wrox 'Professional JSP'.
I show how to create a StringBuffer that keeps the last 32K of the
System.out messages and I can show that in a browser through a servlet. This
is ideal for debugging server side.
I'm currently working on a class that redirects the System.out to a Socket
so you can have the debug messages in your telnet window.

Geert 'Darling' Van Damme


> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Probert
> Sent: vrijdag 28 juli 2000 11:37
> To: [EMAIL PROTECTED]
> Subject: capturing standard out
>
>
> JSP list,
>
> Could anyone help me? I am attempting to run a java class (which
> has a main method) from within a jsp page, and display the
> output, which is being sent to System.out.println. Is this
> possible, I feel that it should be, but my attempts have all
> fallen flat.
> If this is not simple to do with jsp, could anyone advise a
> better way to run a java class and capture the output in a
> browser? I have tried perl but can't seem to get hold of the
> output.
>
> TIA
>
>
> Chris Probert
> [EMAIL PROTECTED]
>
> Electronic Trade Services
> St. Alkmunds House
> 103 Belper Road
> Derby
> DE1 3ER
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> 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".
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