把用户权限存入session中,jsp页面通过判定权限的值限制按钮 <c:if test="${sessionScope.limit=='系统管理员' }"> <a href="addbuser.jsp">添加管理员账号</a></c:if>