<%@ page import="com.mahe666.util.Constant" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>主页</title>
</head>
<body>

<%--
<%
    //第一种实现方式，但是不应该交给jsp来做
    Object user_session = request.getSession().getAttribute(Constant.USER_SESSION);
    if (user_session == null){
        response.sendRedirect("/login.jsp");
    }

%>
--%>

<h1>主页</h1>
<a href="/servlet/logout">注销</a>

</body>
</html>
