出错信息 2008-8-19 23:50:20 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 25 in the jsp file: /test/chklogin.jsp The method addCookie(Cookie) in the type HttpServletResponse is not applicable for the arguments (String) 22: if(adminvalue.equals(username)&& pwdvalue.equals(password)) 23: { 24: Cookie theadminok=new Cookie("adminok","true"); 25: response.addCookie("theadminok"); 26: response.sendRedirect("manager.jsp"); 27: 28: }