资源简介
没有用框架集的J2EE网上订餐系统,适合初学者。特别是学生哦~~~
代码片段和文件信息
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 accann extends HttpServlet {
/**
* Constructor of the object.
*/
public accann() {
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());
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 occurs
*/
public void init() throws ServletException {
// Put your code here
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 414 2010-05-13 19:27 ordermeals\OrderMeals\.classpath
文件 303 2010-06-11 10:16 ordermeals\OrderMeals\.myme
文件 1416 2010-05-13 19:27 ordermeals\OrderMeals\.project
文件 500 2010-05-13 19:28 ordermeals\OrderMeals\.settings\.jsdtscope
文件 629 2010-06-09 12:14 ordermeals\OrderMeals\.settings\org.eclipse.jdt.core.prefs
文件 49 2010-05-13 19:28 ordermeals\OrderMeals\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2010-05-13 19:28 ordermeals\OrderMeals\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 732695 2010-05-13 19:27 ordermeals\OrderMeals\mysql-connector-java-5.1.12-bin.jar
文件 2686 2010-06-10 01:09 ordermeals\OrderMeals\src\accann.java
文件 2057 2010-06-12 00:19 ordermeals\OrderMeals\src\AccOrderServlet.java
文件 1554 2010-06-12 00:15 ordermeals\OrderMeals\src\accrestServlet.java
文件 1501 2010-06-12 02:56 ordermeals\OrderMeals\src\AddAnnouncementServlet.java
文件 1932 2010-06-12 02:58 ordermeals\OrderMeals\src\AddAnnServlet.java
文件 2028 2010-06-12 01:32 ordermeals\OrderMeals\src\AddDishServlet.java
文件 2704 2010-06-10 12:38 ordermeals\OrderMeals\src\AddOrderServlet.java
文件 2654 2010-06-12 00:15 ordermeals\OrderMeals\src\alterpwdServlet.java
文件 2046 2010-06-12 00:15 ordermeals\OrderMeals\src\anndeleteServlet.java
文件 1913 2010-06-12 13:39 ordermeals\OrderMeals\src\annlistloginServlet.java
文件 1560 2010-06-12 00:15 ordermeals\OrderMeals\src\annlistunloginServlet.java
文件 1289 2010-06-10 01:09 ordermeals\OrderMeals\src\AnnManager.java
文件 1581 2010-06-12 00:15 ordermeals\OrderMeals\src\annServlet.java
文件 1633 2010-06-12 00:15 ordermeals\OrderMeals\src\commhistoryServlet.java
文件 1794 2010-06-12 12:03 ordermeals\OrderMeals\src\comminfoServlet.java
文件 2756 2010-06-10 12:42 ordermeals\OrderMeals\src\ConfirmOrderServlet.java
文件 2274 2010-06-12 00:15 ordermeals\OrderMeals\src\customerdeleteServlet.java
文件 2112 2010-06-12 00:15 ordermeals\OrderMeals\src\customermanageServlet.java
文件 2231 2010-06-10 23:57 ordermeals\OrderMeals\src\DeleteDishServlet.java
文件 2702 2010-06-09 03:51 ordermeals\OrderMeals\src\EditAnnServlet.java
文件 2455 2010-06-11 22:30 ordermeals\OrderMeals\src\EditDishServlet.java
文件 2688 2010-06-12 00:15 ordermeals\OrderMeals\src\forgetpwdServlet.java
............此处省略321个文件信息
相关资源
- jsp模拟酷狗官网源码(附数据库)
- 法律咨询信息系统(java+jsp+sqlserver)
- 煤矿安全管理系统(jsp源码+数据库脚
- 基于JSP实现的美食餐饮管理系统(源
- 北大青鸟jsp+servlte服务管理系统
- 都市供求信息网(源码+数据库+文档)
- jsp+servlet+jdbc开发学生信息后台管理系
- JSP选课系统(源码+文档+数据库)
- 基于JSP的超市销售管理系统(源码+
- jsp宠物商店(源码+数据库)
- jsp进销存管理系统(源码+数据库+文档
- 基于JAVA_JSP电子书系统(源码+数据库
- JSP考试网上报名考试系统(源码+数据
- jsp讲解
- jsp简单登录
- shine网上书城(jsp+mysql)
- 基于JSP学生成绩管理系统软件的开发
- 学生请假管理系统.zip
- 药品进销存管理系统(论文范文_JSP
- JSP购物网站完整源码包含项目源码,
- 奖学金管理系统java+jsp+mysql
- 实现jsp页面二级下拉框联动,实时读
- JSP+SQL音乐网站(毕业设计)
- JSP+MYSQL鞋城在线销售系统
- jsp网站模板
- JSP多文件上传同时上传
- J2EE服务支持平台下融通供应商服务系
- JAVA JSP学生网上报名系统
- 大双引力中的双耦合物质场得到了中
- pdf-chinese.zip
评论
共有 条评论