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

📄 index_jsp.java

📁 jsp mysql 实现网上购物系统
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import com.mybusiness.web.ware.wareclass;

public final class index_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");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      com.mybusiness.web.wareclasslist classlist = null;
      synchronized (_jspx_page_context) {
        classlist = (com.mybusiness.web.wareclasslist) _jspx_page_context.getAttribute("classlist", PageContext.PAGE_SCOPE);
        if (classlist == null){
          classlist = new com.mybusiness.web.wareclasslist();
          _jspx_page_context.setAttribute("classlist", classlist, PageContext.PAGE_SCOPE);
        }
      }
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>MyBusiness 首页</title>\r\n");
      out.write("<script Language=\"javascript\">\r\n");
      out.write("function checkform(){\r\n");
      out.write("  name = document.form1.username.value\r\n");
      out.write("  if(name == \"\"){\r\n");
      out.write("    alert(\"请输入用户名!\");\r\n");
      out.write("    document.form1.username.focus();\r\n");
      out.write("\treturn false;\r\n");
      out.write("  }\r\n");
      out.write("\r\n");
      out.write("  password=document.form1.passwd.value\r\n");
      out.write("  if(password==\"\"){\r\n");
      out.write("    alert(\"请输入密码!\");\r\n");
      out.write("    document.form1.passwd.focus();\r\n");
      out.write("\treturn false;\r\n");
      out.write("   }\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("\r\n");
      out.write("<link rel=\"stylesheet\" href=\"ware.css\" type=\"text/css\">\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body  background=images/112.gif text=\"#000000\">\r\n");
      out.write("<div align=\"center\">\r\n");
      out.write("  <table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
      out.write("    <tr> \r\n");
      out.write("      <td align=\"center\"><img src=\"images/baners2.gif\" width=\"670\" height=\"120\"></td>\r\n");
      out.write("      <td align=\"center\" width=\"80\">\r\n");
      out.write("        <a href=\"manage/login.jsp\">网站管理</a></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
      out.write("  <tr>\r\n");
      out.write("      <td width=\"250\">&nbsp;</td>\r\n");
      out.write("      <td width=\"100\"><a href=\"warelist.jsp\">在线购物</a></td>\r\n");
      out.write("      <td width=\"100\"><a href=\"shoperlist.jsp\">我的购物车</a></td> \r\n");
      out.write("\t  <td align=\"right\">登陆时间: ");
      out.print( (new java.util.Date()).toLocaleString() );
      out.write("&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("  <table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
      out.write("    <tr valign=\"top\"> \r\n");
      out.write("      <td width=\"186\"> \r\n");
      out.write("        <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td width=\"20\">&nbsp;</td>\r\n");
      out.write("            <td><IMG  src=\"images/shouji.jpg\" ></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <IMG  src=\"images/jingpin.gif\" >\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td width=\"20\">&nbsp;</td>\r\n");
      out.write("            <td></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          \r\n");
      out.write("          <tr> \r\n");
      out.write("            <td width=\"20\">&nbsp;</td>\r\n");
      out.write("            <td>&nbsp;</td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>\r\n");
      out.write("        \r\n");
      out.write("      </td>\r\n");
      out.write("      <td width=\"387\">\r\n");
      out.write("      <img src=\"images/MallADDefault_0_5_1_20061211102523.gif\" width=\"300\" height=\"220\"><br>\r\n");
      out.write("     \r\n");
      out.write("     <FONT color=#FFFF00 face=隶书 size=7><MARQUEE height=50 width=240>物美价廉,货到付款</FONT></MARQUEE><FONT color=#00FF00 face=隶书 size=7><MARQUEE direction=right height=50 width=240>款付到货,廉价美物</MARQUEE></FONT>\r\n");
      out.write("     \r\n");
      out.write("      \r\n");
      out.write("      \r\n");
      out.write("      </td>\r\n");
      out.write("      \r\n");
      out.write("                <td width=\"167\" align=\"center\">\r\n");
      out.write("              \r\n");
      out.write("                <IMG src=\"images/bang3.gif\"  >\r\n");
      out.write("               \r\n");
      out.write("              <TR>\r\n");
      out.write("                <TD vAlign=top \r\n");
      out.write("                background=images/left_back.gif \r\n");
      out.write("                height=180>\r\n");
      out.write("                  <TABLE height=180 cellSpacing=0 cellPadding=0 width=190 \r\n");
      out.write("                  border=0>\r\n");
      out.write("                    <TBODY>\r\n");
      out.write("                    <TR>\r\n");
      out.write("                      <TD width=11></TD>\r\n");
      out.write("                      <TD vAlign=top width=179>\r\n");
      out.write("                        <TABLE height=198 cellSpacing=0 cellPadding=0 \r\n");
      out.write("                        width=\"100%\" border=0>\r\n");
      out.write("                          <form name=\"form1\" method=\"post\" action=\"login.jsp\" onsubmit=\"return checkform()\">\r\n");
      out.write("                          <TBODY>\r\n");
      out.write("                          <TR>\r\n");
      out.write("                            <TD colSpan=2 height=29><SPAN \r\n");
      out.write("                              class=style10>顾客您好,购买商品请先登陆!</SPAN></TD></TR>\r\n");
      out.write("                          <TR>\r\n");
      out.write("                            <TD width=\"25%\" height=29 >登陆名</TD>\r\n");
      out.write("                            <TD width=\"75%\" height=29><input type=\"text\" name=\"username\" size=\"16\" maxlength=\"25\"></TD></TR>\r\n");
      out.write("                          <TR>\r\n");
      out.write("                            <TD height=29 >密&nbsp;&nbsp;码</TD>\r\n");
      out.write("                            <TD height=29><input type=\"password\" name=\"passwd\" size=\"16\" maxlength=\"20\"></TD></TR>\r\n");
      out.write("                     \r\n");
      out.write("                          <TR>\r\n");
      out.write("                            <TD colSpan=2 height=29><INPUT type=image \r\n");
      out.write("                              height=29 width=86 \r\n");
      out.write("                              src=\"images/join.gif\" \r\n");
      out.write("                              border=0 name=\"Submit\"> <A class=style1 \r\n");
      out.write("                              href=\"reg.jsp\" \r\n");
      out.write("                              target=_blank>注册会员</A> </TD></TR>\r\n");
      out.write("                          </FORM></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>\r\n");
      out.write("                          </TD>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("  <table width=\"70%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"center\">开发:王文耀<br>\r\n");
      out.write("        CopyRight@2006 <br>\r\n");
      out.write("        Email:<a href=\"mailto:wwy170@163.com\">wwy170@163.com</a></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("  \r\n");
      out.write("</div>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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