new199.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":"
+ request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<base href="<%= basePath %>">
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String userName = request.getParameter("userName");
String userPwd = request.getParameter("userPwd");
if(userName.equals("user1") && userPwd.equals("123"))
{
response.sendRedirect("new197.html");
}
else
{
response.sendRedirect("new198.html");
}
%>
</body>
</html>