oauth_error.jsp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
  6. String error = (String)request.getAttribute("error");
  7. String message = (String)request.getAttribute("message");
  8. if(null == error && message == null){
  9. error = request.getParameter("error");
  10. message = request.getParameter("message");
  11. }
  12. error = (null == error || "".equals(error) || "null".equals(error)) ? "" : error;
  13. message = (null == message || "".equals(message) || "null".equals(message)) ? "" : message;
  14. String errMsg = "".equals(error) ? message : error;
  15. %>
  16. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  17. <html xmlns="http://www.w3.org/1999/xhtml">
  18. <head>
  19. <base href="<%=basePath%>" />
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  21. <title>系统错误页面</title>
  22. <style>
  23. *{ margin:0; padding:0; font-family:Microsoft YaHei; font-size:14px;}
  24. .red{ color:#F00;}
  25. .blue{ color:#03F;}
  26. .fw600{ font-weight:600;}
  27. .fs18{ font-size:18px;}
  28. .plr2{ padding:0 2px;}
  29. .errorW{ width:600px; height:500px; margin:0 auto;}
  30. .errorW .img{ width:200px; height:168px; margin:0 auto; padding:80px 0 20px;}
  31. .errorW h1{ width:600px; height:32px; line-height:32px; text-align:center; padding:10px 0; font-size:20px; color:#444; font-weight:600;}
  32. .errorW p{ width:600px; height:32px; line-height:32px; text-align:center; padding:5px 0;}
  33. .errorW .p_red a{ color:#f00; font-size:18px; font-weight:600; padding:0 2px; text-decoration:none;}
  34. .errorW .p_red a:hover{ color:#C00; font-size:18px; font-weight:600; padding:0 2px; text-decoration:none;}
  35. .errorW .p_blue a{ color:#09F; font-size:18px; font-weight:600; padding:0 2px; text-decoration:none;}
  36. .errorW .p_blue a:hover{ color:#00F; font-size:18px; font-weight:600; padding:0 2px; text-decoration:none;}
  37. </style>
  38. </head>
  39. <body>
  40. <div class="errorW">
  41. <div class="img">
  42. <img src="uias/images/sj.gif" width="200" height="168" />
  43. </div>
  44. <h1><%=errMsg%></h1>
  45. </div>
  46. </body>
  47. </html>