?? 復(fù)件_0020loginpage_jsp.java
字號(hào):
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class 復(fù)件_0020loginPage_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GB2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Language\" content=\"zh-cn\">\r\n<title>復(fù)件 pagesian3</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<script language=\"javascript\" type=\"\">\r\nfunction Rule(){\r\n //檢查用戶名是否規(guī)范\r\n var nametext=document.form1.txtName.value;\r\n if(nametext.length==0||nametext.length>=20)\r\n {\r\n alert(\"用戶名不可以為空或者超過20個(gè)英文字母或者10個(gè)漢字!\")\r\n document.form1.txtName.focus();\r\n return false;\r\n }\r\n\r\n //檢查密碼是否符合規(guī)范\r\n var pwds1=document.form1.pwd1.value;\r\n var pwds2=document.form1.pwd2.value;\r\n if(pwds1==pwds2){\r\n if(pwds1.length==0){\r\n alert(\"密碼不能為空!\\n請輸入密碼\");\r\n document.form1.pwd1.focus();\r\n return false;\r\n }\r\n }\r\n else{\r\n alert(\"兩次輸入的密碼不同!\\n請重新輸入\");\r\n document.form1.pwd2.focus();\r\n return false;\r\n }\r\n //檢查Email的填寫是否符合規(guī)范\r\n var emailRule=document.form1.email.value;\r\n if(emailRule.length==0)\r\n {\r\n alert(\"電子郵件格式不正確\\n不可以為空!\");\r\n document.form1.email.focus();\r\n return false;\r\n\r\n }\r\n if(emailRule.indexOf(\"@\",0)==-1)\r\n {\r\n");
out.write(" alert(\"電子郵件格式不正確\\n必須包含@符號(hào)!\");\r\n document.form1.email.focus();\r\n return false;\r\n\r\n }\r\n if(emailRule.indexOf(\".\",0)==-1)\r\n {\r\n alert(\"電子郵件格式不正確\\n必須包含.符號(hào)!\");\r\n document.form1.email.focus();\r\n return false;\r\n\r\n }\r\n //檢查安全提問和答案是否符合規(guī)范\r\n var questionRule=document.form1.Question.value;\r\n var answerRule=document.form1.answer.value;\r\n if (questionRule.length>20||questionRule.length<6)\r\n {\r\n alert(\"提示問題長度不可以少于6位或3個(gè)漢字,也不能超過20位或10個(gè)漢字\");\r\n document.form1.Question.focus();\r\n return false;\r\n }\r\n\r\n if (answerRule.length>20||answerRule.length<6)\r\n {\r\n alert(\"答案長度不可以少于6位或3個(gè)漢字,也不能超過20位或10個(gè)漢字\");\r\n document.form1.answer.focus();\r\n return false;\r\n\r\n }\r\n\r\n //檢查真實(shí)姓名是否符合規(guī)范\r\n var rnameRule=document.form1.rname.value;\r\n if(rnameRule.length==0||rnameRule.length>=20)\r\n {\r\n alert(\"姓名不可以為空或者超過20個(gè)英文字母或者10個(gè)漢字!\");\r\n document.form1.rname.focus();\r\n return false;\r\n\r\n }\r\n\r\n //檢查證件號(hào)碼是否符合規(guī)范\r\n var numberRule=document.form1.select.value;\r\n var cnumRule=document.form1.Cnum.value;\r\n if (numberRule==1)\r\n");
out.write(" {\r\n if(cnumRule.length!=15&&cnumRule.length!=18)\r\n {\r\n alert(\"身份證號(hào)碼必須為15或18位\");\r\n document.form1.Cnum.focus();\r\n return false\r\n }\r\n\r\n }\r\n if (numberRule==2)\r\n {\r\n if (cnumRule.length==0)\r\n {\r\n alert(\"證件號(hào)碼不能為空!\");\r\n document.form1.Cnum.focus();\r\n return false\r\n }\r\n }\r\n if (numberRule==3)\r\n {\r\n if (cnumRule.length==0)\r\n {\r\n alert(\"證件號(hào)碼不能為空!\");\r\n document.form1.Cnum.focus();\r\n return false\r\n }\r\n }\r\n //檢查電話號(hào)碼是否規(guī)范\r\n var telephoneRule=document.form1.telephone.value;\r\n var mphoneRule=document.form1.mPhone.value;\r\n if (telephoneRule.length==0&&mphoneRule.length==0)\r\n {\r\n alert(\"電話號(hào)碼或手機(jī)號(hào)碼必須填寫其中一項(xiàng)!\");\r\n document.form1.telephone.focus();\r\n return false;\r\n }\r\n if (isNaN(telephoneRule)||isNaN(mphoneRule))\r\n {\r\n alert(\"格式錯(cuò)誤\\n請正確輸入,必須是數(shù)字!\");\r\n document.form1.telephone.focus();\r\n return false;\r\n }\r\n //檢驗(yàn)接貨地址和備用地址的填寫是否規(guī)范\r\n var addressRule=document.form1.Address.value;\r\n if (addressRule.length==0)\r\n");
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -