How to implement if-else logic
<c:choose>
<c:when test="${pageControl.adCategory == 'health'}">
...
</c:when>
<c:when test="${pageControl.adCategory == 'travel'}">
...
</c:when>
<c:when test="${pageControl.adCategory == 'science'}">
...
</c:when>
<c:otherwise>
...
</c:otherwise>
</c:choose>
How to handle checkboxes in forms in Spring
<input type="checkbox" name="wantsEmail" id="signup-checkbox" value="true" <c:if test="${signupCredentials.wantsEmail == true}">checked</c:if> >