• 大小: 536KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-07
  • 语言: Java
  • 标签:

资源简介

该系统是我学习JSP时所做的一个网上销售系统例子,开发环境选择的是Netbeans5.5.1+JDK1.5.1_02,后台数据库选择的是SQL Server2000,数据库备份存放于dbbackup文件夹下,恢复名称为cdshopDB,也许会对于新学者有所帮助.

资源截图

代码片段和文件信息

package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import cdshop.cd.CD;
import cdshop.run.OperationOnCd;

public final class addToShopCart_jsp extends org.apache.jasper.runtime.HttpJspbase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  public object 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(“\n“);
      out.write(“\n“);
      out.write(“\n“);
      out.write(“\n“);
      out.write(“\n“);
      out.write(“\n“);
      out.write(“    \n“);
      out.write(“        ta http-equiv=\“Content-Type\“ content=\“text/html; charset=UTF-8\“>\n“);
      out.write(“        tle>JSP Pagetle>\n“);
      out.write(“    \n“);
      out.write(“     “);

        String cdID=request.getParameter(“shoppingCdID“);
        String toBuyNumber=request.getParameter(“toBuyNum“);
         CD cd=new CD();
        if(cdID!=null){
            OperationOnCd oc=new OperationOnCd();
            cd=oc.getCDbyID(cdID);
        }
        request.getSession(true);
        Vector shopList=(Vector)session.getAttribute(“shopList“);
        Vector toBuyNumList=(Vector)session.getAttribute(“toBuyNumList“);
        if(shopList==null & toBuyNumList==null){
            shopList=new Vector();  
            toBuyNumList=new Vector();
        }        
        shopList.add(cd);
        toBuyNumList.add(toBuyNumber);
        session.setAttribute(“shopList“shopList);
        session.setAttribute(“toBuyNumList“toBuyNumList);
        response.sendRedirect(“index.jsp“);
     
      out.write(“\n“);
      out.write(“    \n“);
      out.write(“    \n“);
      out.write(“    \n“);
      out.write(“\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_pag

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4095  2007-09-07 12:07  cdshop\build\generated\classes\org\apache\jsp\addToShopCart_jsp.class

     文件       4831  2007-09-06 21:47  cdshop\build\generated\classes\org\apache\jsp\cdlist_jsp.class

     文件       6110  2007-09-07 11:48  cdshop\build\generated\classes\org\apache\jsp\detailInfo_jsp.class

     文件       3858  2007-09-05 21:29  cdshop\build\generated\classes\org\apache\jsp\doRegisterUser_jsp.class

     文件       4173  2007-09-06 17:53  cdshop\build\generated\classes\org\apache\jsp\head_jsp.class

     文件      11071  2007-09-07 12:01  cdshop\build\generated\classes\org\apache\jsp\index_jsp.class

     文件       6136  2007-09-06 21:35  cdshop\build\generated\classes\org\apache\jsp\left_jsp.class

     文件       8405  2007-09-06 22:15  cdshop\build\generated\classes\org\apache\jsp\login_jsp.class

     文件       3697  2007-09-06 20:15  cdshop\build\generated\classes\org\apache\jsp\outputUserName_jsp.class

     文件       7398  2007-09-07 11:40  cdshop\build\generated\classes\org\apache\jsp\registerUser_jsp.class

     文件       8024  2007-09-07 12:00  cdshop\build\generated\classes\org\apache\jsp\shopCart_jsp.class

     文件        113  2007-09-07 12:07  cdshop\build\generated\src\org\apache\jsp\addToShopCart_jsp.class.smap

     文件       3162  2007-09-07 12:07  cdshop\build\generated\src\org\apache\jsp\addToShopCart_jsp.java

     文件         92  2007-09-06 21:47  cdshop\build\generated\src\org\apache\jsp\cdlist_jsp.class.smap

     文件       4270  2007-09-06 21:47  cdshop\build\generated\src\org\apache\jsp\cdlist_jsp.java

     文件        295  2007-09-07 11:48  cdshop\build\generated\src\org\apache\jsp\detailInfo_jsp.class.smap

     文件       6852  2007-09-07 11:48  cdshop\build\generated\src\org\apache\jsp\detailInfo_jsp.java

     文件        148  2007-09-05 21:29  cdshop\build\generated\src\org\apache\jsp\doRegisterUser_jsp.class.smap

     文件       2985  2007-09-05 21:29  cdshop\build\generated\src\org\apache\jsp\doRegisterUser_jsp.java

     文件         69  2007-09-06 17:53  cdshop\build\generated\src\org\apache\jsp\head_jsp.class.smap

     文件       3490  2007-09-06 17:53  cdshop\build\generated\src\org\apache\jsp\head_jsp.java

     文件        336  2007-09-07 12:01  cdshop\build\generated\src\org\apache\jsp\index_jsp.class.smap

     文件      12590  2007-09-07 12:01  cdshop\build\generated\src\org\apache\jsp\index_jsp.java

     文件         87  2007-09-06 21:35  cdshop\build\generated\src\org\apache\jsp\left_jsp.class.smap

     文件       5759  2007-09-06 21:35  cdshop\build\generated\src\org\apache\jsp\left_jsp.java

     文件        227  2007-09-06 22:15  cdshop\build\generated\src\org\apache\jsp\login_jsp.class.smap

     文件       8529  2007-09-06 22:15  cdshop\build\generated\src\org\apache\jsp\login_jsp.java

     文件        131  2007-09-06 20:15  cdshop\build\generated\src\org\apache\jsp\outputUserName_jsp.class.smap

     文件       2734  2007-09-06 20:15  cdshop\build\generated\src\org\apache\jsp\outputUserName_jsp.java

     文件        134  2007-09-07 11:40  cdshop\build\generated\src\org\apache\jsp\registerUser_jsp.class.smap

............此处省略116个文件信息

评论

共有 条评论

相关资源