try{ //程序代码,可能会抛出异常 }catch(Exception e){ StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); ex.printStackTrace(pw); out.print(sw); sw.close(); pw.close(); }
详细解决方案
jsp页面中打印输出错误
热度:133 发布时间:2012-12-22 12:05:06.0