Mozilla对java的支持到底如何?
(redhat9.0)我用的是LAN的上网方式(windows正常),必须先进入登陆页面,该页面含有一个安全认证的AAPPLET,每次用Mozilla打开该页面时,浏览器就会HANG掉。而用Konquer打开则不会Hang,只是状态栏一直处于99%,输入帐号后,也能登陆进入Internet,可是好景不长,2分钟内必断,而且登陆后的页面状态栏也是99%.
我装的是jdk1.4.1_01,独立JAVA控制台和WEB加载的JAVA控制台都没有任何问题,只是乱码而已,我想这应该不是关键问题。
PATH,CLASSPATH,JAVA_HOME,甚至JRE_HOME都加载了(/etc/profile),也Export了。
以下是该页面的源程序:
<!-- Start of Global variables -->
<script language="Javascript">
<!--//
var global_ok = 0;
var userlabel = "";
var passlabel = "";
var submitlabel = "";
var loginlabel = "";
//-->
</script>
<!-- End of Global variables -->
<script language="Javascript">
<!--//
userlabel="用户名称: ";
passlabel="密码: ";
submitlabel="递交";
loginlabel="登入";
//-->
</script>
<html>
<head>
<title>SSO User Login</title></head>
<!-- Start of JS functions -->
<script language="Javascript">
<!--//
var global_count = 0;
var user = "";
var pass_before = "";
function checkit()
{
pass_before = document.form.pass.value;
user = document.form.user.value;
document.form.pass.value = "";
document.form.user.value = "";
if(navigator.userAgent.indexOf('Netscape6') != -1)
{
N6_checkit();
}
else
{
IE_N4_checkit();
}
return false;
}
function IE_N4_checkit()
{
if (user != "" && pass_before != "")
{
if (global_ok == 0)
{
if (global_count < 20)
{
retry();
}
else
{
alert("Please input and submit your uname and password again");
global_count = 0;
}
}
else
{
var pass_after = document.SA.encode(pass_before);
document.newform.user.value=user;
document.newform.pass.value=pass_after;
document.newform.submit();
}
}
}
function retry()
{
global_count++;
if(navigator.userAgent.indexOf('Netscape6') != -1)
{
setTimeout('N6_checkit()', 1500);
}
else
{
setTimeout('IE_N4_checkit()', 1500);
}
}
//-->
</script>
<!-- End of JS functions -->
<body bgcolor="#001D6B" topmargin="0" leftmargin="0" alink=white vlink=white link=white>
<td width="85" align=right><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#ffffff">
敬告:由于安全方面的原因,系统的授权证书已经更新。在您成功登录后,如果系统弹出一个安全警告对话窗口,请选中“Always trust this content ...”后单击【Yes】按钮或单击【Yes】按钮。由此造成的不便,在此深表歉意!
</font></b></td>
<table width=600 border=0 cellpadding=0 cellspacing=0 align="center">
<tr>
<td>
<div align="center"><img src="/sso/image/ct.jpg"></div>
</td>
</tr>
<tr>
<td height="38" valign="bottom" align="right" rowspan="2">
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="100" align="right" valign="bottom" height="73">
<div align="left">
<SCRIPT>
function fnSaveForm(){
window.external.AutoCompleteSaveForm(form);
}
</SCRIPT>
<form name="form" onsubmit="return checkit();" >
<table width="580" border="0" align="center">
<tr>
<td width = "15">
<img src=/sso/image/spacer.gif height=1 width=15>
</td>
<td width="85" align=right>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><font color="#FFFFFF">
<script language="Javascript">
<!--//
document.write(userlabel);
//-->
</script>
</font> </b></font></p>
</td>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>
<input type="text" name="user" size=12>
</b></font></td>
<td>&nbsp;</td><td rowspan=2>
</td>
</tr>
<tr>
<td width = "15">
<img src=/sso/image/spacer.gif height=1 width=15>
</td>
<td width="85" align=right><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">
<script language="Javascript">
<!--//
document.write(passlabel);
//-->
</script>
</font></b></td>
<td width="480"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input type="password" name="pass" size=12>
<script language="Javascript">
<!--//
if (navigator.appName == 'Microsoft Internet Explorer') {
document.write("<input type='submit' name='Submit' value='"+submitlabel+"' onclick=\"fnSaveForm()\">");
} else {
document.write("<input type='submit' name='Submit' value='"+submitlabel+"'>");
}; //-->
</script>
<img src=/sso/image/spacer.gif height=1 width=20>
<font color="#FFFFFF">
<img src=/sso/image/spacer.gif height=1 width=20>
<font color="#FFFFFF">
</font></font></b></td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</table>
<a href="http://sso.sz.net.cn/userinfo/">用户查询</a>
</div>
</table>
<APPLET CODE="SecureApplet.class" CODEBASE="/sso" ARCHIVE="SecureApplet.jar" WIDTH=1 HEIGHT=1 NAME="SA" MAYSCRIPT=true>
<PARAM NAME = "cabbase" VALUE ="SecureApplet.cab">
<PARAM NAME = debug VALUE =true>
</APPLET>
<font color="#001D6B">
<a href="#" onclick="alert(global_ok)"><font color="#001D6B">
alert
</font></a>
</font>
<form name="newform" method='post' action='/ssoapp/servlet/com.macroview.sso.SSOServlet'>
<input type=hidden name="user" value="">
<input type=hidden name="pass" value="">
<input type=hidden name=action value="S_LOGIN">
</form>
</body>
</html>
<script language="Javascript">
</script>
烦请指教!
页:
[1]