• 大小: 2.61MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-09-13
  • 语言: Java
  • 标签: J2EE  订餐  JSP  系统  

资源简介

没有用框架集的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 Servlettle>“);
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 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 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\.mymetadata

     文件       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个文件信息

评论

共有 条评论