我想用c if 标签实现登陆和不登陆不同的标题栏,但是还像没作用,求帮忙,用户数据表是User 用户名字段是uname
sessionScope.user.uname
c:if test=“empty sessionScope.user”
没登录
/c:if
c:if test=“not empty sessionScope.user”
已经登录
/c:if
贴一下你从后台传过来的uname代码看看,然后再去处理怎么取值问题
<c:if test="${empty sessionScope.uname}">
aa
</c:if>
<c:if test="${!empty sessionScope.uname}">
bb
</c:if>