-
大小: 4.61MB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2023-11-15
- 語(yǔ)言: Java
- 標(biāo)簽: myeclipse??網(wǎng)上購(gòu)物??
資源簡(jiǎn)介
該系統(tǒng)是由myeclipse開發(fā)的網(wǎng)上購(gòu)物系統(tǒng),該系統(tǒng)功能強(qiáng)大,適合初學(xué)和中級(jí)學(xué)java的用戶,敬請(qǐng)放心使用。
代碼片段和文件信息
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
}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????825??2013-12-01?00:50??OnlineShop\.classpath
?????文件????????301??2013-11-23?17:15??OnlineShop\.myme
?????文件???????1228??2011-08-03?20:30??OnlineShop\.project
?????文件???????1748??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\category\Category.java
?????文件???????6286??2007-09-18?15:06??OnlineShop\src\com\bjsxt\shopping\category\CategoryService.java
?????文件????????112??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\category\GradeOutOfBoundsException.java
?????文件???????1118??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\client\Cart.java
?????文件????????410??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\client\CartItem.java
?????文件????????627??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\order\OrderDAO.java
?????文件????????993??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\order\OrderMgr.java
?????文件???????7338??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\order\OrderMySQLDAO.java
?????文件????????823??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\order\SalesItem.java
?????文件???????1079??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\order\SalesOrder.java
?????文件???????1441??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\product\Product.java
?????文件???????1061??2007-09-18?16:20??OnlineShop\src\com\bjsxt\shopping\product\ProductDAO.java
?????文件???????3093??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\product\ProductMgr.java
?????文件???????7888??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\product\ProductMySQLDAO.java
?????文件????????939??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\product\ProductOracleDAO.java
?????文件???????1844??2007-09-19?11:02??OnlineShop\src\com\bjsxt\shopping\product\ProductSearchFormBean.java
?????文件????????631??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\stat\ProductStatItem.java
?????文件???????2198??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\stat\SalesCountServlet.java
?????文件???????1176??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\stat\StatService.java
?????文件????????357??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\tag\HelloWorldTag.java
?????文件???????2440??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\test\BarChartDemo.java
?????文件????????191??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\user\PasswordNotCorrectException.java
?????文件???????2334??2013-12-06?14:22??OnlineShop\src\com\bjsxt\shopping\user\test1.java
?????文件???????6760??2013-12-06?12:33??OnlineShop\src\com\bjsxt\shopping\user\User.java
?????文件????????179??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\user\UserNotFoundException.java
?????文件???????2469??2013-11-23?17:22??OnlineShop\src\com\bjsxt\shopping\util\DB.java
?????文件???????1358??2007-09-18?10:26??OnlineShop\src\com\bjsxt\shopping\util\filter\AuthFilter.java
............此處省略746個(gè)文件信息
評(píng)論
共有 條評(píng)論