我正在尝试检查jsp中的请求属性,以显示/隐藏特定的html。
request.setAttribute("submitted", "true");jsp:
<c:if test="${submitted == 'false'}">
// some html
</c:if>但是,无论我在属性中设置什么值,条件的计算结果总是为false。该属性在条件中不可见吗?
Sahil
发布于 2011-10-02 20:52:17
试着这样做:
request.setAttribute("submitted", true);在你的JSP中:
<c:if test="${submitted}">
// some html
</c:if> https://stackoverflow.com/questions/7626406
复制相似问题