• 大小: 4.71MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-16
  • 语言: Java
  • 标签:

资源简介

jsp网上购物系统源代码有数据库 create database shopping; use shopping; create table user ( id int primary key auto_increment, username varchar(40), password varchar(16), phone varchar(40), addr varchar(255), rdate datetime ); create table category ( id int primary key auto_increment, pid int, #pid为0的是最顶层节点 name varchar(255), descr varchar(255), cno int, #最多三层, 每层占两位, 最多99个子节点 grade int #代表级别, 从1开始 );

资源截图

代码片段和文件信息

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  2008-11-09 16:10  Shopping\
     文件         753  2016-12-23 10:15  Shopping\.classpath
     文件         297  2016-12-23 10:15  Shopping\.mymetadata
     文件        1281  2016-12-15 21:47  Shopping\.project
     目录           0  2008-11-09 16:10  Shopping\SQL\
     文件        1029  2007-09-19 12:03  Shopping\SQL\Shopping.sql
     目录           0  2008-11-09 16:10  Shopping\WebRoot\
     文件        1269  2007-09-18 10:26  Shopping\WebRoot\AdminLogin.jsp
     文件        2494  2007-09-18 10:26  Shopping\WebRoot\Buy.jsp
     文件        1706  2007-09-18 10:26  Shopping\WebRoot\Confirm.jsp
     文件        1097  2007-09-18 10:26  Shopping\WebRoot\GetCategoryChilds.jsp
     文件       48452  2007-09-19 11:55  Shopping\WebRoot\Index.jsp
     文件        1419  2007-09-18 10:26  Shopping\WebRoot\Login.jsp
     目录           0  2008-11-09 16:11  Shopping\WebRoot\meta-INF\
     文件          39  2007-09-18 10:26  Shopping\WebRoot\meta-INF\MANIFEST.MF
     文件         666  2007-09-18 10:26  Shopping\WebRoot\Order.jsp
     文件        3507  2007-09-18 10:26  Shopping\WebRoot\ProductSearch.jsp
     文件        2287  2007-09-20 11:08  Shopping\WebRoot\ProductSearchAJAX.jsp
     文件        9153  2007-09-20 09:30  Shopping\WebRoot\Register.jsp
     文件       11084  2007-09-19 11:34  Shopping\WebRoot\ShowProducts.jsp
     文件         910  2007-09-18 10:26  Shopping\WebRoot\TestContextParam.jsp
     文件         434  2007-09-18 10:26  Shopping\WebRoot\TestTag.jsp
     文件        1383  2007-09-18 10:26  Shopping\WebRoot\UserLogin.jsp
     文件        8334  2007-09-18 10:26  Shopping\WebRoot\UserModify.jsp
     文件         354  2007-09-20 09:32  Shopping\WebRoot\Validate.jsp
     目录           0  2008-11-09 16:11  Shopping\WebRoot\WEB-INF\
     目录           0  2016-12-23 10:15  Shopping\WebRoot\WEB-INF\classes\
     文件        2357  2016-12-23 10:15  Shopping\WebRoot\WEB-INF\classes\TestContextParamServlet.class
     目录           0  2016-12-23 10:15  Shopping\WebRoot\WEB-INF\classes\com\
     目录           0  2016-12-23 10:15  Shopping\WebRoot\WEB-INF\classes\com\bjsxt\
     目录           0  2016-12-23 10:15  Shopping\WebRoot\WEB-INF\classes\com\bjsxt\shopping\
............此处省略740个文件信息

评论

共有 条评论