404.jsp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
  2. <%@include file="/common/taglibs.jsp"%>
  3. <%response.setStatus(404);%>
  4. <!doctype html>
  5. <html lang="en">
  6. <head>
  7. <%@include file="/common/meta.jsp"%>
  8. <title>404 - <spring:message code="core.404.notfound" text="页面不存在"/></title>
  9. <link href="${ctx}/s/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  10. <link href="${ctx}/s/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
  11. <script type="text/javascript" src="${ctx}/s/jquery/jquery.min.js"></script>
  12. <script type="text/javascript">
  13. $(function() {
  14. $('#targetContentDiv').height($(window).innerHeight() - 150);
  15. })
  16. </script>
  17. <style type="text/css">
  18. #targetContentDiv {
  19. background-color: #b8b8b8;
  20. padding: 70px 0 80px;
  21. text-align: center;
  22. }
  23. #targetContentDiv h1 {
  24. font-size: 120px;
  25. letter-spacing: -2px;
  26. line-height: 1;
  27. }
  28. #targetContentDiv p {
  29. font-size: 40px;
  30. font-weight: 200;
  31. line-height: 1.25;
  32. font-weight: bold;
  33. padding: 10px;
  34. }
  35. #targetContentDiv li {
  36. display: inline;
  37. list-style: none outside none;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <div id="targetContentDiv">
  43. <div class="container">
  44. <h1>404</h1>
  45. <p><spring:message code="core.404.notfound" text="页面不存在"/></p>
  46. <div style="color:gray;"><%=request.getAttribute("javax.servlet.forward.request_uri")%></div>
  47. <ul>
  48. <li><a class="btn btn-primary" href="${ctx}/">进入首页</a></li>
  49. <li><a class="btn" href="javascript:void(0);" onclick="history.back()">返回上一个页面</a></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </body>
  54. </html>