首页>代码>java web课程设计学生评教系统>/课程设计/Education_system/src/com/home/operate/Admin_course.java
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 4月27日
LoveyRay  LV1 2月26日
jiayongchao258  LV9 1月8日
zdmxjxj  LV9 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日
最近浏览更多
18699449369  LV2 5月6日
兮希熙西  LV1 4月27日
xdyyds 3月27日
暂无贡献等级
LoveyRay  LV1 2月26日
1362263483 2月19日
暂无贡献等级
rongtao  LV1 1月9日
jiayongchao258  LV9 1月8日
asddwh  LV12 2023年12月26日
ddzfgh  LV1 2023年12月25日
99123123 2023年12月25日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友