在exam服务目录下有verify.jsp、admin.jsp和error.jsp三个jsp页面。vrify.jsp代码如下:<%@ page contentType="text/html;charset=utf-8" %><% request.setCharacterEncoding("GB2312");String str=request.getParameter("uname");String passwd = request.getParameter("passwd");String role =request.getParameter("role");if(!passwd.equals("123321"))response.sendRedirect("error.jsp");else{if (role!=null && role.equals("admin")) {request.getRequestDispatcher("admin.jsp").forward(request,response);} else {out.print("欢迎您来到本网页!");out.print(str);}}%>