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

📄 login_jsp.java

📁 模仿Taobao购物网
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class login_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=GBK");
      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');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "head.jsp", out, true);
      out.write("\r\n");
      out.write("<html>\r\n");

String errmsg = request.getParameter("errmsg");
request.getSession(true);
String chk = "false";
session.putValue("Enter",chk);

      out.write("\r\n");
      out.write("<HEAD><TITLE>飞梦通信:登录</TITLE>\r\n");
      out.write("<link href=\"css/your-account.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("<link href=\"css/login-register.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("<META http-equiv=Content-Type content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<META content=\"MSHTML 6.00.2900.3157\" name=GENERATOR></HEAD>\r\n");
      out.write("<BODY>\r\n");
      out.write("<!--this is content start--><BR>\r\n");
      out.write("<CENTER>\r\n");
      out.write("<TABLE cellSpacing=15 cellPadding=0 width=\"70%\" border=0>\r\n");
      out.write("  <TBODY>\r\n");
      out.write("  <TR><!--this is login table star-->\r\n");
      out.write("    <TD vAlign=top align=right width=\"50%\"><!--this is login table title start-->\r\n");
      out.write("      <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n");
      out.write("        <TBODY>\r\n");
      out.write("        <TR>\r\n");
      out.write("          <TD vAlign=top width=\"99%\" colSpan=4>\r\n");
      out.write("            <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" align=center\r\n");
      out.write("            border=0>\r\n");
      out.write("              <TBODY>\r\n");
      out.write("              <TR>\r\n");
      out.write("                <TD vAlign=top align=left width=10 bgColor=#ddddcc><IMG\r\n");
      out.write("                  height=28 src=\"images/cl_060710_ttlrc.gif\" width=10\r\n");
      out.write("                  border=0 alt=\"\"></TD>\r\n");
      out.write("                <TD vAlign=bottom noWrap width=\"20%\" bgColor=#ddddcc\r\n");
      out.write("                  height=28><SPAN class=title><FONT\r\n");
      out.write("                  face=SimSun>登录飞梦通信</FONT>&nbsp;&nbsp;</SPAN></TD>\r\n");
      out.write("                <TD vAlign=bottom align=right width=\"79%\"\r\n");
      out.write("                bgColor=#ddddcc>&nbsp;</TD>\r\n");
      out.write("                <TD vAlign=top align=right width=10 bgColor=#ddddcc><IMG\r\n");
      out.write("                  height=28 src=\"images/cl_060710_ttrrc.gif\" width=10\r\n");
      out.write("                  border=0 alt=\"\"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!--this is login table title end--><!--this is login table content start-->\r\n");
      out.write("      <TABLE id=\"\" cellSpacing=0 cellPadding=0 width=\"100%\" bgColor=#ddddcc\r\n");
      out.write("      border=0>\r\n");
      out.write("        <TBODY>\r\n");
      out.write("        <TR bgColor=#ddddcc>\r\n");
      out.write("          <TD vAlign=top bgColor=#ddddcc>\r\n");
      out.write("            <table height=330 cellSpacing=3 cellPadding=0 width=\"100%\"\r\n");
      out.write("            align=center bgColor=#ddddcc border=0>\r\n");
      out.write("              <TBODY>\r\n");
      out.write("              <TR>\r\n");
      out.write("                <TD vAlign=top bgColor=#ffffff>\r\n");
      out.write("                  <TABLE cellSpacing=10 cellPadding=0 width=\"100%\" align=center\r\n");
      out.write("                  border=0>\r\n");
      out.write("                    <TBODY>\r\n");
      out.write("                    <TR>\r\n");
      out.write("                      <TD>\r\n");
      out.write("                        <FORM name=\"loginForm\" action=\"chklogin.jsp\"\r\n");
      out.write("                        method=post>\r\n");
      out.write("                        <TABLE cellSpacing=4 cellPadding=4 width=\"100%\" border=0>\r\n");
      out.write("                          <TBODY>\r\n");
      out.write("                          <TR align=left>\r\n");
      out.write("                            <TD class=\"important\" align=left  colSpan=2>\r\n");
      out.write("                              ");

                              if(errmsg != null && errmsg.equals("error1"))
                              out.print("您输入的用户名或密码不正确!请重新输入!");
                              else if(errmsg != null && errmsg.equals("error2"))
                              out.print("请先登陆");
                              else
                              out.print("已注册用户请从这里登录");
                              
      out.write("\r\n");
      out.write("                            </TD></TR>\r\n");
      out.write("                          <TR>\r\n");
      out.write("                            <TD class=font14b align=right width=\"32%\">用户名</TD>\r\n");
      out.write("                            <TD align=left width=\"60%\"><INPUT size=22\r\n");
      out.write("                              name=userid></TD></TR>\r\n");
      out.write("                          <TR>\r\n");
      out.write("                            <TD class=font14b align=right>密 码</TD>\r\n");
      out.write("                            <TD align=left>\r\n");

⌨️ 快捷键说明

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