code359.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>loginConf.jsp</title>
</head>
<body>
<c:choose>
<c:when test="${param.userName == 'root' }">
<c:if test="${param.pwd == 'admin' }">
<jsp:forward page="code360.jsp"></jsp:forward>
</c:if>
<jsp:forward page="code361.jsp"></jsp:forward>
</c:when>
<c:otherwise>
<jsp:forward page="code361.jsp"></jsp:forward>
</c:otherwise>
</c:choose>
</body>
</html>