?? listen.jsp
字號:
<%@page contentType="text/html; charset=GBK" %>
<%@page import="com.onewaveinc.portalman.webpro.*"%>
<%@page import="com.onewaveinc.portalman.webpro.entity.*"%>
<%@page import="java.util.Date"%>
<%
//ICP在Vnet上的服務代碼
String serviceCode = "45454";
//ICP產品信息
String productInfo = "測試按次服務";
//ICP授權結果接受網頁地址
String returnURL = "http://localhost:9000/demoicp/receive.jsp";
//ICP產品價格
int price = 1000;
String icpLoginName = "acnt1234";
OWAuthorizeRequest authRequest = new OWAuthorizeRequest();
//如果需要傳入icp側loginname,則為
OWAuthorizeRequest2 authRequest = new OWAuthorizeRequest2();
//0:由Vnet系統自動判斷1:指明用在ADSL和163帳號中做檢查2:指明用在現金帳號中做檢查3:指定促消卡中扣款4:指定在業務卡中扣款
authRequest.setPayAccountCheckMode(0);
//ICP在Vnet上的服務代碼
authRequest.setServiceCode(serviceCode);
//ICP需要強制跳回的URL
authRequest.setReturnURL(returnURL);
//如果是代收費模式,設置產品價格,單位為厘
authRequest.setExpenditure(price);
//設置產品信息
authRequest.setProductInfo(productInfo);
//設置用戶在icp一側的帳號
authRequest.setIcpLoginName(icpLoginName);
//將OWAuthorizationRequest授權請求object變為請求String
String authString = WebProManager.getOWAuthentication().getOWAuthorizeRequestString(authRequest);
String jumpUrl = WebProManager.getAuthenticationJumpURL() + "?authorize_request=" + authString;
System.out.println(jumpUrl);
%>
<A href='#' onclick='window.open("<%=jumpUrl%>")'> 單擊次處消費收費服務</A><BR><BR><A href='http://gd.chinavnet.com/' target='_blank'>單擊此處跳轉到Vnet主頁</A>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -