什么是网站销售,网络营销是一种什么专业,考试类网站如何做,怎么推广广告一.response:响应对象 提供的方法: void addCookie(Cookie cookie);服务端向客户端增加一个cookie对象 void sendRedirect(String location) throws IOExcetion:页面跳转的一种方法 void setContentType(String type):设置服务端响应的编码 示例重定向: login.jsp—-che… 一.response:响应对象 提供的方法: void addCookie(Cookie cookie);服务端向客户端增加一个cookie对象 void sendRedirect(String location) throws IOExcetion:页面跳转的一种方法 void setContentType(String type):设置服务端响应的编码 示例重定向: login.jsp—-check.jsp-success.jsp 判断登录是否合法 1.login.jsp pageEncoding="utf-8"%Insert title here 用户名: 密码: type="password" name="upwd" value="登录" 2.check.jsp pageEncoding="utf-8"%Insert title here request.setCharacterEncoding("utf-8"); String name = request.getParameter("uname"); String pwd = request.getParameter("upwd"); if (name.equals("zs") pwd.equals("abc")) { response.sendRedirect("success.jsp"); } else { ou