12345678910111213141516171819 |
- <%@ page contentType="text/html; charset=UTF-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Exception!</title></head>
- <body>
- <img src="<%=basePath %>/resource/images/error.png"></img>
- <% Exception e = (Exception)request.getAttribute("exception"); %>
- <H2>业务错误: <%= e.getClass().getSimpleName()%></H2>
- <hr />
- <P>错误描述:</P>
- <%= e.getMessage()%>
- <P>错误信息:</P>
- <% e.printStackTrace(new java.io.PrintWriter(out)); %>
- </body>
- </html>
|