404.jsp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <%@page import="com.jeeplus.core.web.Servlets"%>
  4. <%
  5. response.setStatus(404);
  6. // 如果是异步请求或是手机端,则直接返回信息
  7. if (Servlets.isAjaxRequest(request)) {
  8. out.print("页面不存在.");
  9. }
  10. //输出异常信息页面
  11. else {
  12. %>
  13. <!DOCTYPE html>
  14. <html>
  15. <head>
  16. <title>404 页面</title>
  17. <style>
  18. body {
  19. font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", sans-serif;
  20. font-size: 13px;
  21. color: #676a6c;
  22. }
  23. .middle-box h1 {
  24. font-size: 170px;
  25. }
  26. .middle-box {
  27. max-width: 400px;
  28. z-index: 100;
  29. margin: 0 auto;
  30. padding-top: 40px;
  31. }
  32. .font-bold {
  33. font-weight: 600;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <div class="middle-box text-center animated fadeInDown">
  39. <h1>404</h1>
  40. <h3 class="font-bold">页面未找到!</h3>
  41. <div class="error-desc">
  42. 抱歉,页面好像去火星了~
  43. </div>
  44. </div>
  45. </body>
  46. </html>
  47. <%}%>