display the message in Expcetion.printStackTrace( ) in a JSP page?

2002-03-04 Thread Gerald Reed
Hi there, What is the easiest way to display the message in Expcetion.printStackTrace( ) from a backend Java bean or java object onto a JSP page from which the Java object is called? Thanks in advance. -G __ Do You Yahoo!? Yahoo! Sports - sign

Re: display the message in Expcetion.printStackTrace( ) in a JSP page?

2002-03-04 Thread Chris Pratt
Try something like this: import java.io.PrintWriter; import java.io.StringWriter; public class ExceptionUtility { public static String stackTrace (Throwable t) { StringWriter str = new StringWriter(); t.printStackTrace(new PrintWriter(str)); return str.toString(); } }