资源简介

包含整个网上购物商城的全部源代码。系统中涉及到的技术:jsp+msql+jquery+css+js

资源截图

代码片段和文件信息

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class TestContextParamServlet extends HttpServlet {

/**
 * Constructor of the object.
 */
public TestContextParamServlet() {
super();
}

/**
 * Destruction of the servlet. 

 */
public void destroy() {
super.destroy(); // Just puts “destroy“ string in log
// Put your code here
}

/**
 * The doGet method of the servlet. 

 *
 * This method is called when a form has its tag value method equals to get.
 * 
 * @param request the request send by the client to the server
 * @param response the response send by the server to the client
 * @throws ServletException if an error occurred
 * @throws IOException if an error occurred
 */
public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {

response.setContentType(“text/html“);
PrintWriter out = response.getWriter();
out
.println(““);
out.println(““);
out.println(“  tle>A Servlettle>“);
out.println(“  “);
out.print(“    This is “);
out.print(this.getClass() + this.getServletConfig().getServletContext().getInitParameter(“a“));
out.println(“ using the GET method“);
out.println(“  “);
out.println(““);
out.flush();
out.close();
}

/**
 * The doPost method of the servlet. 

 *
 * This method is called when a form has its tag value method equals to post.
 * 
 * @param request the request send by the client to the server
 * @param response the response send by the server to the client
 * @throws ServletException if an error occurred
 * @throws IOException if an error occurred
 */
public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {

response.setContentType(“text/html“);
PrintWriter out = response.getWriter();
out
.println(““);
out.println(““);
out.println(“  tle>A Servlettle>“);
out.println(“  “);
out.print(“    This is “);
out.print(this.getClass());
out.println(“ using the POST method“);
out.println(“  “);
out.println(““);
out.flush();
out.close();
}

/**
 * Initialization of the servlet. 

 *
 * @throws ServletException if an error occure
 */
public void init() throws ServletException {
// Put your code here
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-03-16 23:37  Shopping\
     文件         753  2007-09-18 10:26  Shopping\.classpath
     文件         297  2007-09-18 10:26  Shopping\.mymetadata
     文件        1226  2007-09-18 10:26  Shopping\.project
     目录           0  2013-03-16 23:37  Shopping\SQL\
     文件        1029  2007-09-19 12:03  Shopping\SQL\Shopping.sql
     目录           0  2013-03-16 23:37  Shopping\src\
     目录           0  2013-03-16 23:37  Shopping\src\com\
     目录           0  2013-03-16 23:37  Shopping\src\com\bjsxt\
     目录           0  2013-03-16 23:37  Shopping\src\com\bjsxt\shopping\
     目录           0  2013-03-16 23:37  Shopping\src\com\bjsxt\shopping\category\
     文件        1748  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\category\Category.java
     文件        6286  2007-09-18 15:06  Shopping\src\com\bjsxt\shopping\category\CategoryService.java
     文件         112  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\category\GradeOutOfBoundsException.java
     目录           0  2013-03-16 23:37  Shopping\src\com\bjsxt\shopping\client\
     文件        1118  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\client\Cart.java
     文件         410  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\client\CartItem.java
     目录           0  2013-03-16 23:37  Shopping\src\com\bjsxt\shopping\order\
     文件         627  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\order\OrderDAO.java
     文件         993  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\order\OrderMgr.java
     文件        7338  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\order\OrderMySQLDAO.java
     文件         823  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\order\SalesItem.java
     文件        1079  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\order\SalesOrder.java
     目录           0  2013-03-16 23:37  Shopping\src\com\bjsxt\shopping\product\
     文件        1441  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\product\Product.java
     文件        1061  2007-09-18 16:20  Shopping\src\com\bjsxt\shopping\product\ProductDAO.java
     文件        3093  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\product\ProductMgr.java
     文件        7888  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\product\ProductMySQLDAO.java
     文件         939  2007-09-18 10:26  Shopping\src\com\bjsxt\shopping\product\ProductOracleDAO.java
     文件        1844  2007-09-19 11:02  Shopping\src\com\bjsxt\shopping\product\ProductSearchFormBean.java
     目录           0  2013-03-16 23:37  Shopping\src\com\bjsxt\shopping\stat\
............此处省略740个文件信息

评论

共有 条评论