You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.lostfound.model.User" %>
<%
User user = (User) session.getAttribute("user");
if (user == null) {
response.sendRedirect("login.jsp");
return;
}
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>校园失物招领平台</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<h1>欢迎,<%= user.getName() %>! </h1>
<p>当前积分:<%= user.getPoints() %></p>
<nav>
<a href="post">发布失物/寻物</a> |
<a href="search">搜索物品</a> |
<a href="my-items">我的发布</a> |
<a href="logout">退出登录</a>
</nav>
<hr>
<h2>热门失物类别</h2>
<ul>
<li>校园卡</li>
<li>书包</li>
<li>手机</li>
<li>水杯</li>
</ul>
</div>
</body>
</html>