Print the error stack on the JSP page

xiaoxiao2021-03-06  80

Try {

....................

}

Catch (Exception E) {

/ / Define a stream

ByteArrayoutputstream ostr = new byteArrayoutputStream ();

// Store the error stack to the stream

E.PrintStackTrace (New PrintStream (OSTR));

//print....

Out.println (Ostr.toString ());

}

转载请注明原文地址:https://www.9cbs.com/read-94711.html

New Post(0)