%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.io.PrintWriter"%> <%@page import="java.io.StringWriter"%>
<%=ex.getMessage()%>
<%
StringWriter sw = new StringWriter();
ex.printStackTrace(new PrintWriter(sw));
sw.close();
out.println(sw.toString().replace("\n", "
"));
%>