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

📄 __zhuce.java

📁 一个使用EJB开发的真实项目
💻 JAVA
字号:
/* compiled from JSP: /zhuce.jsp
*
* This code was automatically generated at 16:08:16 on 2007-1-14
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*/

package jsp_servlet;

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

// User imports


// built-in init parameters:
// boolean             _verbose -- wants debugging

// Well-known variables:
// JspWriter out                  -- to write to the browser
// HttpServletRequest  request    -- the request object.
// HttpServletResponse response   -- the response object.
// PageContext pageContext        -- the page context for this JSP
// HttpSession session            -- the session object for the client (if any)
// ServletContext application     -- The servlet (application) context
// ServletConfig config           -- The ServletConfig for this JSP
// Object page                    -- the instance of this page's implementation class (i.e., 'this')

/**
* This code was automatically generated at 16:08:16 on 2007-1-14
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2007 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __zhuce
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
  
  // StaleIndicator interface  public boolean _isStale() {    weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext());    java.io.File f = null;    long lastModWhenBuilt = 0L;    if (sci.isResourceStale("/zhuce.jsp", 1168760240000L, "8.1.4.0", "Asia/Shanghai")) return true;    return false;  }    public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {    java.io.File f = null;    long lastModWhenBuilt = 0L;    if (sci.isResourceStale("/zhuce.jsp", 1168760240000L, "8.1.4.0", "Asia/Shanghai")) return true;    return false;  }      private static void _writeText(ServletResponse rsp, JspWriter out, String block, byte[] blockBytes) throws IOException {    if (!_WL_ENCODED_BYTES_OK || _hasEncodingChanged(rsp)) {      out.print(block);    } else {      ((weblogic.servlet.jsp.ByteWriter)out).write(blockBytes, block);    }   }      private static boolean _hasEncodingChanged(ServletResponse rsp) {    if (_WL_ORIGINAL_ENCODING.equals(rsp.getCharacterEncoding())) {      return false;    }    return true;  }    private static boolean _WL_ENCODED_BYTES_OK = true;    private static final String _WL_ORIGINAL_ENCODING = "GB2312";    private static byte[] _getBytes(String block) {    try {      return block.getBytes(_WL_ORIGINAL_ENCODING);    } catch (java.io.UnsupportedEncodingException u) {      _WL_ENCODED_BYTES_OK = false;    }    return null;  }  private final static String _wl_block0 = "\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>注册</title>\r\n<script language=\"JavaScript\" type=\"text/JavaScript\">\r\nfunction jiance(){\r\n  userCode=document.form1.userCode.value;\r\nwindow.location.href=\"zhucejiance.jsp?userCode=\"+userCode;\r\n\r\n\r\n}\r\nfunction test()\r\n{\r\n        var reg3=/^[A-Za-z0-9]+$/;\r\n\tif(document.form1.userCode.value.match(reg3)){}\r\n\telse{\r\n\t\talert(\"请您输入ID号!ID号不支持中文\");\r\n\t\tdocument.form1.userCode.focus();\r\n\t\treturn false;\r\n\t}\r\n\r\n\tif(document.form1.userPW.value.length<4||document.form1.userPW.value.length>16)\r\n\t{\r\n\t\talert(\"请您输入密码!密码该由4-16位数字组成\");\r\n\t\tdocument.form1.userPW.focus();\r\n                return false;\r\n\t}\r\n\r\n        if(document.form1.userName.value.length==0)\r\n\t{\r\n\t\talert(\"请输入您的姓名!\");\r\n\t\tdocument.form1.userName.focus();\r\n\t\treturn false;\r\n\t}\r\n\r\n\tif(document.form1.shenFenZheng.value.length!=18)\r\n\t{\r\n            if(document.form1.shenFenZheng.value.length!=15)\r\n               {\r\n\t\talert(\"请您输入身份证号必须为18位或15位数字\");\r\n\t\tdocument.form1.shenFenZheng.focus();\r\n\t\treturn false;\r\n               }\r\n\t}\r\n\tif(isNaN(document.form1.shenFenZheng.value))\r\n      {\r\n\t     alert(\"请您输入身份证号必须为18位或15位数字\");\r\n\t\tdocument.form1.shenFenZheng.focus();\r\n\t\treturn false;\r\n\t  }\r\n\r\n        var reg = /^((0[1-9]0|0\\d{3})-)?\\d{7,8}$/;\r\n        if(document.form1.telephone.value.match(reg)){}\r\n\telse{\r\n\r\n\t\talert(\"请输入您真实的坐机电话,格式如0739-7250364\");\r\n                document.form1.telephone.focus();\r\n\t\treturn false;\r\n\t}\r\n\r\n\r\n\tif(document.form1.address.value.length==0)\r\n\t{\r\n\t\talert(\"请填写您的有效地址\");\r\n                document.form1.address.focus();\r\n\t\treturn false;\r\n\t}\r\n\tif(document.form1.youZhengBianMa.value.length==0)\r\n\t{\r\n\t\talert(\"请填写您的有效邮政编码\");\r\n                document.form1.youZhengBianMa.focus();\r\n\t\treturn false;\r\n\t}\r\n        if(isNaN(document.form1.youZhengBianMa.value))\r\n\t{\r\n\t\talert(\"请填写您的有效邮政编码应该为数字才对\");\r\n                document.form1.youZhengBianMa.focus();\r\n\t\treturn false;\r\n\t}\r\n        var reg1 = /^[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)+$/;\r\n\tif(document.form1.email.value.match(reg1)){}\r\n\telse{\r\n\t\talert(\"请正确填写您的安全Email,如exit@163.com\");\r\n                document.form1.email.focus();\r\n\t\treturn false;\r\n\t}\r\n\treturn true;\r\n}\r\n</script>\r\n<style type=\"text/css\">\r\n<!--\r\n.style1 {font-weight: bold}\r\n-->\r\n</style>\r\n</head>\r\n\r\n<body background=\"photo/zhuce.jpg\">\r\n<form name=\"form1\" method=\"post\" action=\"shenQingChuLi.jsp\" onsubmit=\"return test()\">\r\n  <div align=\"center\">\r\n    <table width=\"517\" height=\"415\" border=\"0\">\r\n      <tr>\r\n        <td colspan=\"2\"><div align=\"center\">\r\n          <input name=\"imageField\" type=\"image\" src=\"photo/shenqinghuiyuan.jpg\" width=\"77\" height=\"22\" border=\"0\">\r\n        </div></td>\r\n        <td>&nbsp;</td>\r\n      </tr>\r\n      <tr>\r\n        <td width=\"47\"><input name=\"imageField\" type=\"image\" src=\"photo/userId.jpg\" width=\"77\" height=\"22\" border=\"0\"></td>\r\n        <td width=\"168\"><input name=\"userCode\" type=\"text\" id=\"userCode\" maxlength=\"20\"></td>\r\n        <td><a href=\"javascript:jiance()\"  ;>点击检测用户名是否存在</a></td>\r\n      </tr>\r\n      <tr>\r\n        <td><input name=\"imageField\" type=\"image\" src=\"photo/userPW.jpg\" width=\"77\" height=\"22\" border=\"0\"></td>\r\n        <td><input name=\"userPW\" type=\"password\" id=\"userPW\" maxlength=\"20\"></td>\r\n        <td><SAMP class=\"style4 style1\">[必须在4-16个字符之间]</SAMP></td>\r\n      </tr>\r\n      <tr>\r\n        <td colspan=\"3\" ><SAMP class=\"style4 style1\"><h5 ><strong>请您详细填写以下内容,方便我们即使与您取得联系</strong></h5>\r\n        </SAMP></td>\r\n      </tr>\r\n      <tr>\r\n        <td><input name=\"imageField\" type=\"image\" src=\"photo/name.jpg\" width=\"77\" height=\"22\" border=\"0\"></td>\r\n        <td><input name=\"userName\" type=\"text\" id=\"userName\" maxlength=\"30\"></td>\r\n        <td><SPAN class=style1><SAMP class=style4>[请留下真实姓名,方便与您联系为您发货]</SAMP></SPAN></td>\r\n      </tr>\r\n      <tr>\r\n        <td><input name=\"imageField\" type=\"image\" src=\"photo/shenfenzhenghao.jpg\" width=\"77\" height=\"22\" border=\"0\"></td>\r\n        <td><input name=\"shenFenZheng\" type=\"text\" id=\"shenFenZheng\" maxlength=\"20\"></td>\r\n        <td><SPAN class=style1><SAMP class=style4>[请照实填写]</SAMP></SPAN></td>\r\n      </tr>\r\n      <tr>\r\n        <td><input name=\"imageField\" type=\"image\" src=\"photo/telphone.jpg\" width=\"77\" height=\"22\" border=\"0\"></td>\r\n        <td><input name=\"telephone\" type=\"text\" id=\"telephone\" maxlength=\"25\"></td>\r\n        <td><SAMP class=\"style4 style1\">[请填写能与您随时取得联系的电话,方便与您联系]</SAMP></td>\r\n      </tr>\r\n      <tr>\r\n        <td><input name=\"imageField\" type=\"image\" src=\"photo/address.jpg\" width=\"77\" height=\"22\" border=\"0\"></td>\r\n        <td><input name=\"address\" type=\"text\" id=\"address\" maxlength=\"100\"></td>\r\n        <td><SAMP class=\"style4 style1\">[请详细填写收货地址,以便我们尽快将您的商品送达]</SAMP></td>\r\n      </tr>\r\n      <tr>\r\n        <td><input name=\"imageField\" type=\"image\" src=\"photo/youzheng.jpg\" width=\"77\" height=\"22\" border=\"0\"></td>\r\n        <td><input name=\"youZhengBianMa\" type=\"text\" maxlength=\"20\"></td>\r\n        <td><SAMP class=\"style4 style1\">[请详细填写邮政编码,以便我们尽快将您的商品送达]</SAMP></td>\r\n      </tr>\r\n      <tr>\r\n        <td><input name=\"imageField\" type=\"image\" src=\"photo/Email.jpg\" width=\"77\" height=\"22\" border=\"0\">\r\n        <td><input name=\"email\" type=\"text\" maxlength=\"30\"></td>\r\n        <td><SAMP class=\"style4 style1\">[请填写您的安全邮箱]</SAMP></td>\r\n      </tr>\r\n      <tr>\r\n        <td>&nbsp;</td>\r\n        <td><input type=\"submit\" name=\"Submit\" value=\"提交\">\r\n        <input name=\"Submit2\" type=\"reset\" id=\"Submit2\" value=\"重置\">\r\n        <input name=\"Submit1\" type=\"button\" id=\"Submit1\" value=\"检测\" onclick=\"test()\"></td>\r\n        <td>&nbsp;</td>\r\n      </tr>\r\n    </table>\r\n  </div>\r\n</form>\r\n\r\n</body>\r\n</html>\r\n";  private final static byte[] _wl_block0Bytes = _getBytes(_wl_block0);  
  
  public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException 
  {  
    
    // declare and set well-known variables:
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.ServletContext application = config.getServletContext();
    javax.servlet.jsp.tagext.Tag _activeTag = null;
    // variables for Tag extension protocol    
    Object page = this;
    javax.servlet.jsp.JspWriter out;
    javax.servlet.jsp.PageContext pageContext =    javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);    
    response.setHeader("Content-Type", "text/html; charset=gb2312");    out = pageContext.getOut();    JspWriter _originalOut = out;    
    javax.servlet.http.HttpSession session = request.getSession(true);    
    
    
    try { // error page try block            response.setContentType("text/html; charset=gb2312");            _writeText(response, out, _wl_block0, _wl_block0Bytes);    } catch (Throwable __ee) {      while (out != null && out != _originalOut) out = pageContext.popBody();      ((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee);    }        
    //before final close brace...
  }
  
  
}

⌨️ 快捷键说明

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