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
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();
}
}