?? notify.jsp
字號(hào):
<meta http-equiv="pragma" content="no-cache">
<%@ page errorPage="Error.jsp" %>
<%@ page import="javax.ejb.*, javax.naming.*, javax.rmi.PortableRemoteObject, java.rmi.RemoteException" %>
<%@ page import="com.sun.sjc.idtv.vod.server.subscriber.*" %>
<%@ page import="com.sun.sjc.idtv.vod.server.mediacatalog.*" %>
<%@ page import="com.sun.sjc.idtv.vod.server.billing.*" %>
<%@ page import="com.sun.sjc.idtv.vod.server.auditing.*" %>
<%@ page import="com.sun.sjc.idtv.vod.shared.data.*" %>
<%@ page import="com.sun.sjc.idtv.vod.server.comm.*" %>
<%
String contextPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ request.getContextPath();
String servletPath = "/ConductorControllerServlet?" + Const.ACTION + "=" + Const.REFRESH;
String jspPath = request.getServletPath();
String homePath = "/index.jsp";
String shopURL = (String)request.getAttribute(Const.SHOP_URL);
Double randomKey = (Double) request.getSession().getAttribute(Const.RANDOM_KEY);
boolean showLink = true;
//String simVerificationPath = contextPath + "/operaserver?" + Const.ACTION + "=" + Const.SIM_VERIFICATION +
// "&" + Const.RANDOM_KEY + "=" + randomKey;
//System.out.println(simVerificationPath);
Integer refreshInterval = (Integer)request.getSession().getAttribute(Const.REFRESH_INTERVAL);
int refreshInt = refreshInterval == null? 5 : refreshInterval.intValue();//default 5 seconds
String notes = "<P>You should receive a message via SMS informing the random key shortly. " +
"<P>This verification process requires Opera Proxy to return the random-key.";
//String pageTitle = "Verification Progress";
String pageTitle = null;
String pageContent = null;
String refreshContent = null;
String message = (String) request.getAttribute(Const.MESSAGE);
if (message != null) {
if (message.equals(Const.MESSAGE_IN_PROGRESS)) {
pageTitle = "still in progress ...";
pageContent = "<IMG SRC=\"images/progress_1.gif\"><br> " +
"<FONT color=\"#009999\">Waiting for random-key reply from Opera Proxy.</FONT>" + notes;
refreshContent = "<meta http-equiv=\"refresh\" content=\"" +
refreshInt + ";url=" + contextPath + servletPath + "\">";
} else if (message.equals(Const.MESSAGE_TIMEOUT)) {
pageTitle = "Timeout ...";
pageContent = "<FONT color=\"red\">Sorry, your verification process is expired. " +
"Please try again.</FONT>";
refreshContent = "";
session.invalidate();
showLink = false;
}
}
String errorMessage = (String) request.getAttribute(Const.ERROR_MESSAGE);
if(errorMessage != null) {
if(errorMessage.equals(Const.ERROR_EXPIRED)) {
pageTitle = "License Expired";
pageContent = "Your license is invalid. You will be redirected to the shop.";
}else if (errorMessage.equals(Const.ERROR_LIMIT_EXCEEDED)) {
pageTitle = "License Limit Exceeded";
pageContent = "Your license has reached the limit usage. You will be redirected to the shop.";
}else /*if (errorMessage.equals(Const.ERROR_NOT_SUPPORTED)
|| errorMessage.equals(Const.ERROR_FAILURE))*/ {
pageTitle ="Error occured";
pageContent ="Verification process has been terminated.<BR> " +
"Your license can not be verified. Please contact your content provider.";
}
refreshContent = "<meta http-equiv=\"refresh\" content=\"" +
"8" + ";url=" + shopURL + "\">";
System.out.println("Invalidated the session");
request.getSession().invalidate();
showLink = false;
}
if(message == null && errorMessage == null) {
pageTitle = "Welcome";
pageContent = "<FONT size=\"+1\" color=\"#009999\">Welcome.</FONT><BR> " +
"<IMG SRC=\"images/verifying_1.gif\">" + notes;
refreshContent = "<meta http-equiv=\"refresh\" content=\"" +
refreshInt + ";url=" + contextPath + servletPath + "\">";
System.out.println(randomKey);
}
//String redirectURL = (String)request.getAttribute(Const.LICENSE_SERVER);
%>
<HTML>
<HEAD>
</HEAD>
<body background="images/bg800.jpg">
<br>
<CENTER><H1><U><%=request.getAttribute ("Msg")%><U></H1></CENTER>
<%
String rtsplink1 = response.encodeUrl("MoviePurchaseMenu.jsp");
%>
<CENTER>
</CENTER>
<P>
</td></tr></table></td>
</TR>
</TABLE>
</body>
</HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -