<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="jwzt.drm.*" %>
<%
String sMessage = "error";
String sLicense = "";
boolean bIsPlay = false; String strLicenseRequested = request.getParameter("challenges");
int rightid = Integer.parseInt(request.getParameter("rightId")); DrmFile drmFile = new DrmFile();
drmFile.nRightsId = rightid;
if(strLicenseRequested != null)
{
sLicense = drmFile.getLicenseWithPublic(strLicenseRequested);
bIsPlay = true;
}
else
{
bIsPlay = false;
} if( !bIsPlay )
{
out.println("<html><table width=\"100%\">");
out.println("<tr><td align=center><font color=red size=4>");
out.println(sMessage);
out.println("</font></td></tr><tr><td align=center><input type='button' onclick='javascript:history.go(-1);';name=\"retLog\" value='返 回'/></td></tr>");
out.println("</table></html>");
}
else
{
%>
<HTML>
<HEAD>
<TITLE>V2 Licensing</TITLE>
<Script Language="JavaScript">
function StoreV2License(hr)
{
netobj.StoreLicense(document.all("strlicense").value);
window.close();
}
</Script>
</HEAD>
<BODY onload="StoreV2License()">
<div style="display:none"><textarea id=strlicense><%=sLicense%></textarea></div>
<OBJECT classid=clsid:A9FC132B-096D-460B-B7D5-1DB0FAE0C062 height=0 id=netobj width=0>
<EMBED MAYSCRIPT TYPE="application/x-drm-v2" HIDDEN="true">
</OBJECT>
<div align=center>请点击播放按钮开始播放!</div>
</BODY>
</HTML>
<%
}
%>
大家能否帮帮忙把上面的jsp代码转成asp的形式写出来,非常感谢....上面这段是drm加密系统里的其中一个文件。
<%@ page import="jwzt.drm.*" %>
<%
String sMessage = "error";
String sLicense = "";
boolean bIsPlay = false; String strLicenseRequested = request.getParameter("challenges");
int rightid = Integer.parseInt(request.getParameter("rightId")); DrmFile drmFile = new DrmFile();
drmFile.nRightsId = rightid;
if(strLicenseRequested != null)
{
sLicense = drmFile.getLicenseWithPublic(strLicenseRequested);
bIsPlay = true;
}
else
{
bIsPlay = false;
} if( !bIsPlay )
{
out.println("<html><table width=\"100%\">");
out.println("<tr><td align=center><font color=red size=4>");
out.println(sMessage);
out.println("</font></td></tr><tr><td align=center><input type='button' onclick='javascript:history.go(-1);';name=\"retLog\" value='返 回'/></td></tr>");
out.println("</table></html>");
}
else
{
%>
<HTML>
<HEAD>
<TITLE>V2 Licensing</TITLE>
<Script Language="JavaScript">
function StoreV2License(hr)
{
netobj.StoreLicense(document.all("strlicense").value);
window.close();
}
</Script>
</HEAD>
<BODY onload="StoreV2License()">
<div style="display:none"><textarea id=strlicense><%=sLicense%></textarea></div>
<OBJECT classid=clsid:A9FC132B-096D-460B-B7D5-1DB0FAE0C062 height=0 id=netobj width=0>
<EMBED MAYSCRIPT TYPE="application/x-drm-v2" HIDDEN="true">
</OBJECT>
<div align=center>请点击播放按钮开始播放!</div>
</BODY>
</HTML>
<%
}
%>
大家能否帮帮忙把上面的jsp代码转成asp的形式写出来,非常感谢....上面这段是drm加密系统里的其中一个文件。
解决方案 »
- session赋值问题?
- 请教,The server encountered an internal error () 怎么解决
- jsp 标签问题
- 系统运行一段时间后,登陆系统,出现连接不上数据库的错误
- 菜鸟急问:一个jsp页面无法运行的错误,我莫不着头脑啊
- sun的网站下载速度太慢了不到1KB,下个jdk1.5要16个小时,请问别的地方那还有下载(没分先谢)
- 有来麻烦大家,还是英语翻译
- static public String getInstance(){}方法和public static String getInstance()有没有区别?
- tomcat报错:JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
- 关于在JSP页面上读取,改写word文档
- <bean write:里的javabean的属性里面含有<br>,如何让显示的文字换行
- servlet里面可以自己随意的定义函数吗???
下面的选择判断都好做,只是语言不同而已