e-404.jsp 1007 B

12345678910111213141516171819202122232425262728
  1. <%@ page contentType="text/html; charset=UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  5. %>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7. <html>
  8. <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>404!</title></head>
  9. <script type="text/javascript">
  10. function setPage(){
  11. document.getElementById('page').innerHTML = document.URL;
  12. }
  13. function refresh(){
  14. window.location.href = document.URL;
  15. }
  16. </script>
  17. <body onload="setPage();">
  18. <img src="<%=basePath %>/resource/images/error.png"></img>
  19. <H2>404错误!</H2>
  20. <hr />
  21. <P>错误描述:</P>
  22. 您访问的页面:<font id="page" color=blue></font>不存在!<br />
  23. 请与系统管理员联系!
  24. <P>错误信息:</P>
  25. 您访问的页面不存在!<br/>
  26. <input value="尝试刷新" title="刷新" style="width:80;height:30;" onclick="refresh();" type="button"></input>
  27. </body>
  28. </html>