package com.home.operate; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.home.dao.MyDao; import com.home.pojo.Model_tea; public class Admin_course extends HttpServlet { /** * Constructor of the object. */ public Admin_course() { super(); } /** * Destruction of the servlet. <br> */ public void destroy() { super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. <br> * * 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 { ArrayList<Model_tea> ul=new ArrayList<Model_tea>(); ul=MyDao.get_tea_name(); request.setAttribute("c_ul", ul); request.getRequestDispatcher("admin/admin_course.jsp").forward(request, response); } /** * The doPost method of the servlet. <br> * * 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 { this.doGet(request, response); } /** * Initialization of the servlet. <br> * * @throws ServletException if an error occurs */ public void init() throws ServletException { // Put your code here } }

兮希熙西 LV1
2024年4月27日
LoveyRay LV1
2024年2月26日
jiayongchao258 LV9
2024年1月8日
zdmxjxj LV11
2023年4月8日
flowerdance LV1
2023年4月4日
北方菜 LV11
2023年2月10日
hgjhbvjhgbjh LV1
2023年1月9日
lvllvl LV4
2023年1月8日
微信网友_6268131861106688 LV5
2022年12月19日
2511952410 LV9
2022年8月14日