1>实现登录,如果用户名密码错误,转入到登录页面,提示信息:用户名密码错误
2>如果用户不登录,直接访问展示页面,也需要转入到登录页面 提示信息:请先登录在访问
3>实现退出功能 转到登录页面
4>统计查看展示页面的人数
login:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
</head>
<body>
<%
request.setCharacterEncoding("UTF-8");
Object warning = request.getAttribute("wrong");
if (warning != null){
out.println(warning);
}
%>
<form action="login_YN.jsp" method="post">
用户名:<input type="text" name="user_name">
密码<input type="password" name="password">
<input type="submit" value="登录">
</for