You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.8 KiB
52 lines
1.8 KiB
4 weeks ago
|
<%--
|
||
|
Created by IntelliJ IDEA.
|
||
|
User: ytzhou
|
||
|
Date: 2014/7/8
|
||
|
Time: 16:02
|
||
|
To change this template use File | Settings | File Templates.
|
||
|
--%>
|
||
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||
|
<%
|
||
|
String response_type = (String)request.getAttribute("response_type");
|
||
|
String client_id = (String)request.getAttribute("client_id");
|
||
|
String client_secret = (String)request.getAttribute("client_secret");
|
||
|
String redirect_uri = (String)request.getAttribute("redirect_uri");
|
||
|
String scope = "";
|
||
|
String state = (String)request.getAttribute("state");
|
||
|
if(null==state){
|
||
|
state = "";
|
||
|
}
|
||
|
System.out.println("response_type="+response_type+" client_id="+client_id);
|
||
|
%>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>系统运行错误</title>
|
||
|
<!-- <link type="text/css" href="https://api.weibo.com/oauth2/css/oauth/oauth_web.css" rel="stylesheet" /> -->
|
||
|
<script language="javascript">
|
||
|
function doBack(){
|
||
|
var url = "oauth?action=login&response_type=<%=response_type%>&client_id=<%=client_id%>&client_secret=<%=client_secret%>&redirect_uri=<%=redirect_uri%>&scope=<%=scope%>&state=<%=state%>";
|
||
|
//alert(url);
|
||
|
document.location.href=url;
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body class="WB_widgets">
|
||
|
<!-- 内容区 -->
|
||
|
<div class="oauth_wrap">
|
||
|
<div class="oauth_header clearfix">
|
||
|
<!-- <h1 class="WB_logo" title="微博">微博</h1>-->
|
||
|
<p class="login_account"></p>
|
||
|
</div>
|
||
|
<!-- 无头像 -->
|
||
|
<div class="WB_panel oauth_main">
|
||
|
<div class="oauth_error">
|
||
|
<div class="oauth_error_content clearfix"> <span class="oauth_error_icon WB_tipB_err"></span>
|
||
|
访问出错了:<br> <%=request.getAttribute("desc") %>
|
||
|
<br><br>
|
||
|
点击<a href="javascript:void(0);" onclick="doBack()">这里</a>返回
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|