📄 register_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.sql.*;
import com.wgh.DB.connDB;
public class register_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
connDB conn=new connDB();
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>Go购电子商城");
out.write("</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<link href=\"CSS/style.css\" rel=\"stylesheet\">\r\n");
out.write("<script src=\"JS/check.jsp\">");
out.write("</script>\r\n");
out.write("</head>\r\n");
out.write("<body>\r\n");
out.write("<table width=\"790\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td class=\"tableBorder\">\r\n");
JspRuntimeLibrary.include(request, response, "navigation.jsp", out, false);
out.write("\r\n");
out.write("<table width=\"790\" height=\"236\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td width=\"182\" height=\"182\" valign=\"top\">\r\n\t");
JspRuntimeLibrary.include(request, response, "left.jsp", out, false);
out.write("\r\n\t");
out.write("</td>\r\n ");
out.write("<td valign=\"top\">");
out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td width=\"93\" height=\"33\" background=\"images/shop_12.gif\">");
out.write("</td>\r\n ");
out.write("<td width=\"505\" height=\"33\" align=\"right\" valign=\"middle\" background=\"images/shop_12.gif\">");
out.write("<table width=\"100%\" height=\"24\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"8\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td align=\"right\" class=\"word_green\">");
out.write("<marquee direction=\"left\" scrollamount=\"1\" scrolldelay=\"1\" onMouseOver=\"this.stop();\" onMouseOut=\"this.start();\">^_^ 顾客您好!购买商品请先登录 ");
out.write("<a href=\"register.jsp\" class=\"word_green\">[新用户注册]");
out.write("</a>");
out.write("</marquee>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("<td width=\"10\" background=\"images/shop_12.gif\"> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"189\" valign=\"top\">\r\n\t\t ");
out.write("<form action=\"register_deal.jsp\" method=\"post\" name=\"myform\">\r\n\t\t ");
out.write("<table width=\"100%\" border=\"0\" cellspacing=\"-2\" cellpadding=\"-2\">\r\n ");
out.write("<tr>\r\n ");
out.write("<script language=\"javascript\">\r\n\t\t\t\t\t\t function openwin(UID){\r\n\t\t\t\t\t\t if (UID==\"\"){\r\n\t\t\t\t\t\t\t\talert(\"请输入用户名!\");\r\n\t\t\t\t\t\t\t\tmyform.UserName.focus();\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t var str=\"checkUserName.jsp?username=\"+UID;\r\n\t\t\t\t\t\t window.showModalDialog(str,\"\",\"dialogWidth=300px;dialogHeight=150px;status=no;help=no;scrollbars=no\");\r\n\t\t\t\t\t\t }\r\n\t\t\t ");
out.write("</script>\r\n ");
out.write("<td width=\"18%\" height=\"30\" align=\"center\">用 户 名:");
out.write("</td>\r\n ");
out.write("<td width=\"82%\" class=\"word_grey\">");
out.write("<input name=\"username\" type=\"text\" maxlength=\"20\">\r\n ");
out.write("<span class=\"word_orange\">*");
out.write("</span> ");
out.write("<span class=\"word_orange\">[");
out.write("</span>");
out.write("<a href=\"#\" onClick=\"openwin(myform.UserName.value)\">检测用户名");
out.write("</a>");
out.write("<span class=\"word_orange\">]");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\">密 码:");
out.write("</td>\r\n ");
out.write("<td height=\"28\">");
out.write("<input name=\"pwd\" type=\"password\" size=\"20\" maxlength=\"20\">\r\n ");
out.write("<span class=\"word_orange\">*");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\">真实姓名:");
out.write("</td>\r\n ");
out.write("<td height=\"28\">");
out.write("<input name=\"truename\" type=\"text\" maxlength=\"10\">\r\n ");
out.write("<span class=\"word_orange\">*");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\">确认密码:");
out.write("</td>\r\n ");
out.write("<td height=\"28\">");
out.write("<input name=\"pwd1\" type=\"password\" size=\"20\" maxlength=\"20\">\r\n ");
out.write("<span class=\"word_orange\">*");
out.write("</span> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\">所在城市:");
out.write("</td>\r\n ");
out.write("<td>");
out.write("<input name=\"city\" type=\"text\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\">证件类别:");
out.write("</td>\r\n ");
out.write("<td>");
out.write("<input name=\"cardtype\" type=\"radio\" class=\"noborder\" value=\"身份证\" checked>\r\n 身份证 \r\n ");
out.write("<input name=\"cardtype\" type=\"radio\" class=\"noborder\" value=\"军官证\">\r\n 军官证\r\n ");
out.write("<input name=\"cardtype\" type=\"radio\" class=\"noborder\" value=\"学生证\">\r\n 学生证");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\">证件号码:");
out.write("</td>\r\n ");
out.write("<td>");
out.write("<input name=\"cardno\" type=\"text\"> \r\n ");
out.write("<span class=\"word_orange\">*");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\">联系电话:");
out.write("</td>\r\n ");
out.write("<td>");
out.write("<input name=\"tel\" type=\"text\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\" style=\"padding-left:10px\">Email:");
out.write("</td>\r\n ");
out.write("<td class=\"word_grey\">");
out.write("<input name=\"email\" type=\"text\" size=\"50\">\r\n ");
out.write("<span class=\"word_orange\">*");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\">邮政编码:");
out.write("</td>\r\n ");
out.write("<td class=\"word_grey\">");
out.write("<input name=\"postcode\" type=\"text\" size=\"20\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"28\" align=\"center\">联系地址:");
out.write("</td>\r\n ");
out.write("<td class=\"word_grey\">");
out.write("<input name=\"address\" type=\"text\"size=\"50\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"34\"> ");
out.write("</td>\r\n ");
out.write("<td class=\"word_grey\">");
out.write("<input name=\"Button\" type=\"button\" class=\"btn_grey\" value=\"确定保存\" onClick=\"check()\">\r\n ");
out.write("<input name=\"Submit2\" type=\"reset\" class=\"btn_grey\" value=\"重新填写\">\r\n ");
out.write("<input name=\"Submit22\" type=\"button\" class=\"btn_grey\" value=\"返回\" onClick=\"window.location.href='index.jsp'\">\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n\t\t ");
out.write("</form>\r\n\t\t ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"790\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.write("<table width=\"100%\" height=\"78\" border=\"0\" align=\"center\" cellpadding=\"-2\" cellspacing=\"-2\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"13\" colspan=\"5\">");
out.write("<div align=\"center\">\r\n ");
out.write("<hr width=\"100%\" size=\"1\">\r\n ");
out.write("</div>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td width=\"124\" height=\"13\"> ");
out.write("</td>\r\n ");
out.write("<td height=\"13\" colspan=\"3\" align=\"center\">Go购电子商城客户服务热线:0431-4978981,4978982 传真:0431-4972266");
out.write("</td>\r\n ");
out.write("<td width=\"141\"> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td height=\"15\" colspan=\"2\"> ");
out.write("</td>\r\n ");
out.write("<td width=\"464\" valign=\"bottom\" align=\"center\"> CopyRight © 2005 www.mingrisoft.com 吉林省明日科技有限公司");
out.write("</td>\r\n ");
out.write("<td colspan=\"2\"> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td colspan=\"2\"> ");
out.write("</td>\r\n ");
out.write("<td align=\"center\">本站请使用IE6.0或以上版本 1024*768为最佳显示效果");
out.write("</td>\r\n ");
out.write("<td colspan=\"2\"> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr bgcolor=\"#cccccc\">\r\n ");
out.write("<td height=\"8\" colspan=\"2\">");
out.write("</td>\r\n ");
out.write("<td height=\"8\" align=\"center\">");
out.write("</td>\r\n ");
out.write("<td height=\"8\" colspan=\"2\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
conn.close();
out.write("\r\n");
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -