<%@ page language="java" import="java.sql.*"%>
<%@ page contentType="text/html;charset=gb2312"%>
<html>
<head>
<title>×¢²áÓû§ÐÅÏ¢</title>
<meta http-equiv="Content-Type" content="text/html";charset=gb2312">
<script language="javascript" SRC="function.js">
</script>
<script language="javascript">
function check_input() {
var name=trim(document.theform.name.value);
var nickname=trim(document.theform.nickname.value);
var password1=trim(document.theform.password1.value);
var ask_password=trim(document.theform.ask_password.value);
var password2=trim(document.theform.password2.value);
var answer_password=trim(document.theform.answer_password.value);
var true_name=trim(document.theform.true_name.value);
var card=trim(document.theform.card.value);
var phone=trim(document.theform.phone.value);
var career=trim(document.theform.career.value);
var email=trim(document.theform.email.value);
var contact_address=trim(document.theform.contact_address.value);
var zip=trim(document.theform.zip.value);
var company_address=trim(document.theform.company_address.value);
if (trim(document.theform.name.value)=="") {
alert("ÇëÌîдÓû§Ãû");
return false;
}
if(trim(document.theform.nickname.value)="") {
alert("ÇëÌîдêdzÆ!");
return false;
}
if (trim(document.theform.true_name.value)=="") {
alert("ÇëÌîдÕæʵÐÕÃû");
return false;
}
if(trim(document.theform.card.value)="") {
alert("ÇëÌîдÉí·ÝÖ¤ºÅ!");
return false;
}
if(!is_number(document.theform.card.value)) {
alert("ÇëÌîдÉí·ÝÖ¤ºÅ!(ÓÉÊý×Ö×é³É)");
return false;
}
if(trim(document.theform.passworc1.value)=""){
alert("ÇëÌîдÃÜÂë! ");
return false;
}
if(trim(document.theform.password2.value)="") {
alert("ÇëÌîдȷÈÏÃÜÂë! ");
return false;
}
if(document.theform.password1.value !=document.theform.password2.value) {
alert("Á½´ÎÊäÈëµÄÃÜÂë²»Ò»ÖÂ! ");
return false;
}
if (trim(document.theform.contact_address.value)=="") {
alert("ÇëÌîдÁªÏµµØÖ·");
return false;
}
if(trim(document.theform.phone.value)="") {
alert("ÇëÌîдÁªÏµµç»°!");
return false;
}
if(!is_number(document.theform.phone.value)) {
alert("ÇëÌîдÁªÏµµç»°!(ÓÉÊý×Ö×é³É)");
return false;
}
if (trim(document.theform.zip.value)=="") {
alert("ÇëÌîдÓÊÕþ±àÂë");
return false;
}
if (!is_number(document.theform.zip.value)) {
alert("ÇëÌîдÓÊÕþ±àÂë(ÓÉÊý×Ö×é³É)");
return false;
}
if(trim(document.theform.email.value)="") {
alert("ÇëÌîдE-mailµØÖ·!");
return false;
}
return true;
}
</script>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>
<body bgcolor="#ffffff">
<div id="Layer1" style="position:absolute; left:10px; top:10px; width:160px; height:60px; z-index:1"><img src="image/hlbz1.jpg" width="160" height="60"></div>
<div id="Layer2" style="position:absolute; left:190px; top:10px; width:560px; height:60px; z-index:2"><img src="image/bg3.gif" width="560"height="60"></div>
<div id="Layer3" style="position:absolute; left:185px; top:142px; width:430px; z-index:3; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; height: 173px">
<div align="center">
<form action="register2.jsp" method="post" onsubmit="return check_input()">
<table width="100%" border="0" bordercolor="#FFFF33" cellpadding="1">
<tr bgcolor="#00CCFF">
<td width="32%" height="21">
<div align="center"><font color="#0000FF">Óà »§ Ãû£º</font></div>
</td>
<td width="68%" height="21">
<input type="text" name="name" id="name">
*<font size="2">£¨ÆäÖдø*µÄ±ØÌî)</font></td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%" height="18">
<div align="center"><font color="#0000FF">ÃÜ Â룺</font></div>
</td>
<td width="68%" height="18">
<input type="password" name="password1">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">È·ÈÏÃÜÂ룺</font></div>
</td>
<td width="68%">
<input type="password" name="password2">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">êÇ ³Æ£º</font></div>
</td>
<td width="68%">
<input type="text" name="nickname">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÃÜÂëÎÊÌ⣺</font></div>
</td>
<td width="68%">
<input type="text" name="ask_password">
</td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÃÜÂë»Ø´ð£º</font></div>
</td>
<td width="68%">
<input type="text" name="answer_password">
</td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÕæʵÐÕÃû£º</font></div>
</td>
<td width="68%">
<input type="text" name="true_name">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">Éí·ÝÖ¤ºÅ£º</font></div>
</td>
<td width="68%">
<input type="text" name="card">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÁªÏµµç»°£º</font></div>
</td>
<td width="68%">
<input type="text" name="phone">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">Ö° Òµ£º</font></div>
</td>
<td width="68%">
<input type="text" name="career">
</td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">E-mail£º</font></div>
</td>
<td width="68%">
<input type="text" name="email">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">±¾ÈËËùÔڵأº</font></div>
</td>
<td width="68%">
<select name="location">
<option value="ºÓÄÏ" selected>ºÓÄÏ</option>
<option value="ºÓ±±">ºÓ±±</option>
<option value="±±¾©">±±¾©</option>
<option value="ɽ¶«">ɽ¶«</option>
</select>
</td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÁªÏµµØÖ·£º</font></div>
</td>
<td width="68%">
<input type="text" name="contact_address">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÓÊÕþ±àÂ룺</font></div>
</td>
<td width="68%">
<input type="text" name="zip">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">µ¥Î»µØÖ·£º</font></div>
</td>
<td width="68%">
<input type="text" name="company_address">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td height="14" colspan="2">
<div align="center"><font color="#0000FF">
<input type="submit" name="confirm" value="È·ÈÏ">
</font>
<input type="reset" name="reinput" value="ÖØÌî">
</div>
</td>
</tr>
</table>
</form>
</div>
</div>
<div id="Layer4" style="position:absolute; left:187px; top:124px; width:426px; height:20px; z-index:4; background-color: #999999; layer-background-color: #999999; border: 1px none #000000">
<div align="center"><font color="#FFFFFF" face="»ªÎÄÐÂκ"><b><font size="4">Óû§×¢²áÐÅÏ¢</font></b></font></div>
</div>
<font color="#FFFFFF"><font face="»ªÎÄÐÂκ"><b>Óû§×¢²áÐÅÏ¢</b></font></font>
<div id="layerl" style="position:absolrte; width:200px; height:63px; z-index:1; left: 75px; top:
14px"></div>
<div id="layer3" style="position:absolrte; width:363px; z-index:2; left: 315px; top:
15px"></div>
<div id="layer3" style="position:absolrte; width:628px; height:22px; z-index:3; left: 65px; top:
83px" align="center">
<hr width="760" align="center" color:blue>
</div>
</body>
</html>
在这里了。这个页面用超连接就不行。
<%@ page contentType="text/html;charset=gb2312"%>
<html>
<head>
<title>×¢²áÓû§ÐÅÏ¢</title>
<meta http-equiv="Content-Type" content="text/html";charset=gb2312">
<script language="javascript" SRC="function.js">
</script>
<script language="javascript">
function check_input() {
var name=trim(document.theform.name.value);
var nickname=trim(document.theform.nickname.value);
var password1=trim(document.theform.password1.value);
var ask_password=trim(document.theform.ask_password.value);
var password2=trim(document.theform.password2.value);
var answer_password=trim(document.theform.answer_password.value);
var true_name=trim(document.theform.true_name.value);
var card=trim(document.theform.card.value);
var phone=trim(document.theform.phone.value);
var career=trim(document.theform.career.value);
var email=trim(document.theform.email.value);
var contact_address=trim(document.theform.contact_address.value);
var zip=trim(document.theform.zip.value);
var company_address=trim(document.theform.company_address.value);
if (trim(document.theform.name.value)=="") {
alert("ÇëÌîдÓû§Ãû");
return false;
}
if(trim(document.theform.nickname.value)="") {
alert("ÇëÌîдêdzÆ!");
return false;
}
if (trim(document.theform.true_name.value)=="") {
alert("ÇëÌîдÕæʵÐÕÃû");
return false;
}
if(trim(document.theform.card.value)="") {
alert("ÇëÌîдÉí·ÝÖ¤ºÅ!");
return false;
}
if(!is_number(document.theform.card.value)) {
alert("ÇëÌîдÉí·ÝÖ¤ºÅ!(ÓÉÊý×Ö×é³É)");
return false;
}
if(trim(document.theform.passworc1.value)=""){
alert("ÇëÌîдÃÜÂë! ");
return false;
}
if(trim(document.theform.password2.value)="") {
alert("ÇëÌîдȷÈÏÃÜÂë! ");
return false;
}
if(document.theform.password1.value !=document.theform.password2.value) {
alert("Á½´ÎÊäÈëµÄÃÜÂë²»Ò»ÖÂ! ");
return false;
}
if (trim(document.theform.contact_address.value)=="") {
alert("ÇëÌîдÁªÏµµØÖ·");
return false;
}
if(trim(document.theform.phone.value)="") {
alert("ÇëÌîдÁªÏµµç»°!");
return false;
}
if(!is_number(document.theform.phone.value)) {
alert("ÇëÌîдÁªÏµµç»°!(ÓÉÊý×Ö×é³É)");
return false;
}
if (trim(document.theform.zip.value)=="") {
alert("ÇëÌîдÓÊÕþ±àÂë");
return false;
}
if (!is_number(document.theform.zip.value)) {
alert("ÇëÌîдÓÊÕþ±àÂë(ÓÉÊý×Ö×é³É)");
return false;
}
if(trim(document.theform.email.value)="") {
alert("ÇëÌîдE-mailµØÖ·!");
return false;
}
return true;
}
</script>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>
<body bgcolor="#ffffff">
<div id="Layer1" style="position:absolute; left:10px; top:10px; width:160px; height:60px; z-index:1"><img src="image/hlbz1.jpg" width="160" height="60"></div>
<div id="Layer2" style="position:absolute; left:190px; top:10px; width:560px; height:60px; z-index:2"><img src="image/bg3.gif" width="560"height="60"></div>
<div id="Layer3" style="position:absolute; left:185px; top:142px; width:430px; z-index:3; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; height: 173px">
<div align="center">
<form action="register2.jsp" method="post" onsubmit="return check_input()">
<table width="100%" border="0" bordercolor="#FFFF33" cellpadding="1">
<tr bgcolor="#00CCFF">
<td width="32%" height="21">
<div align="center"><font color="#0000FF">Óà »§ Ãû£º</font></div>
</td>
<td width="68%" height="21">
<input type="text" name="name" id="name">
*<font size="2">£¨ÆäÖдø*µÄ±ØÌî)</font></td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%" height="18">
<div align="center"><font color="#0000FF">ÃÜ Â룺</font></div>
</td>
<td width="68%" height="18">
<input type="password" name="password1">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">È·ÈÏÃÜÂ룺</font></div>
</td>
<td width="68%">
<input type="password" name="password2">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">êÇ ³Æ£º</font></div>
</td>
<td width="68%">
<input type="text" name="nickname">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÃÜÂëÎÊÌ⣺</font></div>
</td>
<td width="68%">
<input type="text" name="ask_password">
</td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÃÜÂë»Ø´ð£º</font></div>
</td>
<td width="68%">
<input type="text" name="answer_password">
</td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÕæʵÐÕÃû£º</font></div>
</td>
<td width="68%">
<input type="text" name="true_name">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">Éí·ÝÖ¤ºÅ£º</font></div>
</td>
<td width="68%">
<input type="text" name="card">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÁªÏµµç»°£º</font></div>
</td>
<td width="68%">
<input type="text" name="phone">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">Ö° Òµ£º</font></div>
</td>
<td width="68%">
<input type="text" name="career">
</td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">E-mail£º</font></div>
</td>
<td width="68%">
<input type="text" name="email">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">±¾ÈËËùÔڵأº</font></div>
</td>
<td width="68%">
<select name="location">
<option value="ºÓÄÏ" selected>ºÓÄÏ</option>
<option value="ºÓ±±">ºÓ±±</option>
<option value="±±¾©">±±¾©</option>
<option value="ɽ¶«">ɽ¶«</option>
</select>
</td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÁªÏµµØÖ·£º</font></div>
</td>
<td width="68%">
<input type="text" name="contact_address">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">ÓÊÕþ±àÂ룺</font></div>
</td>
<td width="68%">
<input type="text" name="zip">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td width="32%">
<div align="center"><font color="#0000FF">µ¥Î»µØÖ·£º</font></div>
</td>
<td width="68%">
<input type="text" name="company_address">
* </td>
</tr>
<tr bgcolor="#00CCFF">
<td height="14" colspan="2">
<div align="center"><font color="#0000FF">
<input type="submit" name="confirm" value="È·ÈÏ">
</font>
<input type="reset" name="reinput" value="ÖØÌî">
</div>
</td>
</tr>
</table>
</form>
</div>
</div>
<div id="Layer4" style="position:absolute; left:187px; top:124px; width:426px; height:20px; z-index:4; background-color: #999999; layer-background-color: #999999; border: 1px none #000000">
<div align="center"><font color="#FFFFFF" face="»ªÎÄÐÂκ"><b><font size="4">Óû§×¢²áÐÅÏ¢</font></b></font></div>
</div>
<font color="#FFFFFF"><font face="»ªÎÄÐÂκ"><b>Óû§×¢²áÐÅÏ¢</b></font></font>
<div id="layerl" style="position:absolrte; width:200px; height:63px; z-index:1; left: 75px; top:
14px"></div>
<div id="layer3" style="position:absolrte; width:363px; z-index:2; left: 315px; top:
15px"></div>
<div id="layer3" style="position:absolrte; width:628px; height:22px; z-index:3; left: 65px; top:
83px" align="center">
<hr width="760" align="center" color:blue>
</div>
</body>
</html>
在这里了。这个页面用超连接就不行。
不会用xml吧!!!
①将这个页面改成HTML页面测试一下是否成功
②不使用代理服务器是否可以正常连接?(比如拨号)
③是不是其他HTML和JSP页面都正常,只有这一个出问题
④把浏览器中的原始错误信息贴出来看看
请多指教.
那应该怎样配置RESIN服务器呢?