E.g.
<c:if test="${post}">
<h3>${post.title}</h3>
</c:if>
E.g.
<c:if test="${post}">
<h3>${post.title}</h3>
</c:if>
Use the empty keyword
<c:if test="${not empty post}">
<h3>${post.title}</h3>
</c:if>
How can I check if the property exists in Command object? There is no property of "title" exists in command bean.
<c:if test="${empty command.title}">
<h1>this throws exception</h1>
</c:if>