資源簡介
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?Servlet tle>“);
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?Servlet tle>“);
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\.myme
?????文件????????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\me
?????文件??????????39??2007-09-18?10:26??Shopping\WebRoot\me
?????文件?????????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個文件信息
評論
共有 條評論