public void setAdmin(HttpServletRequest request, HttpServletResponse response) {
		
		HttpSession session = request.getSession();
		//JSPлϢ
		String name = request.getParameter("name");
		String password = request.getParameter("password");	
		//userDAOʵ
		UserDAO userdao = new UserDAO();

		//жϹԱʺϢ 
		try{
			if(userdao.adminTest(name, password)){
				User user = new User();
				user.setName(name);
				user.setPass(password);
				session.setAttribute("userInfo",user);
			request.getRequestDispatcher("../managerView/adminMain.jsp").forward(request,response);
			
		}
		else{
			request.getRequestDispatcher("../managerView/adminLogin.jsp").forward(request,response);
			
		}
		}catch(IOException e){
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}