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>
You can also use '!' instead 'not' :
<c:if test="${!empty post}">
<h3>${post.title}</h3>
</c:if>