<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>Insert title here <%String un = request.getParameter("username");String pw = request.getParameter("password");if("admin".equals(un) && "123".equals(pw)){session.setAttribute("aa", un);out.println("这是一个页面
");}else{out.println("密码错误");}/* Object obj = session.getAttribute("aa");if(obj == null){response.sendRedirect("login.jsp");} */%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>Insert title here