资源简介
该系统是由myeclipse开发的网上购物系统,该系统功能强大,适合初学和中级学java的用户,敬请放心使用。
代码片段和文件信息
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
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 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个文件信息
- 上一篇:WEB实现的计算器
- 下一篇:processing x86的video库
相关资源
- 基于JAVA_MyEclipse图书管理系统
- 网上购物系统 Java JSP sql带数据库
- 基于JSP的网上购物 (用了jsp+servlet+
- jsp大作业-在线学习平台MyEclipse+Mysql
- 基于NetBean开发的jsp网上购物项目
- 网上购物系统 jsp mysql 系统+论文
- JSP网上购物 论文+开题报告+任务书+文
- java web校园二手交易平台网站
- jsp网上购物系统完整版
- jsp网上购物商城
- 简单JSP网上购物系统适合初学者
- jsp+mysql的网上购物商城
- jsp网上购物系统 mysql java
- JSP网上购物 论文+开题报告+任务书+文
- 网上购物系统+毕业设计(完整版)
- 网上购物系统jsp+sqlserver2005+javaWeb+Se
- javaweb网上购物网站后台+前端.rar
- 一个用Myeclipse做的java的博客管理系统
- 网上购物系统jsp+mysql+tomcat
- mybatis逆向工程工具源代码并包含相关
- 云笔记项目---Myeclipse完整版
- JSP网上购物 论文+开题报告+任务书
- 学生自测练习考试系统毕业设计jspS
- 网上购物系统(JavaBean+Servlet+jsp).z
- 基于javaweb实现的简单购物商城
- egit-updatesite-1.2
- javaSSH小项目-图表统计
- 网上购物系统jsp mysql tomcat
- jsp+myeclipse+mysql做的学生成绩管理系统
- jsp网上购物系统源代码金尚商城完整
评论
共有 条评论