注册页
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>Insert title here
中间页
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>Insert title here <%String syhm = request.getParameter("yhm");String sszmm = request.getParameter("szmm");String sqrmm = request.getParameter("qrmm");if(sszmm.equals(sqrmm)){ application.setAttribute("syhm", syhm); application.setAttribute("sszmm", sszmm); out.print("注册成功!");}else{ out.print("您输入的密码不一致!");}%>
查看页
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>Insert title here <%String syhm = new String(application.getAttribute("syhm").toString());String sszmm = new String(application.getAttribute("sszmm").toString());out.print("用户名:" + syhm +"" + "密码:" + sszmm);%>