⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notify.jsp

📁 Sun公司Dream项目
💻 JSP
字号:

<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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -