<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<%@ page language="java" import="weibo4j.*"%>
<%@ page language="java" import="weibo4j.http.*"%>
<%@ page language="java" import="weibo4j.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>Insert title here</title>
</head>
<body>
<%
try { Oauth oauth = new Oauth();
String url = oauth.authorize("code"); response.sendRedirect(url);
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
%>
</body>
</html>
RT:     新浪的Oauth这个接口不能在页面调用吗?