Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Render HTML conditionally in Spring MVC
- <logic:present name="someForm" property="someProperty">
- //Code block
- </logic:present>
- <h:panelGrid rendered="#{not empty someList}">
- //Some code block
- </h:panelGrid>
- <c:if test="${not empty someList}">
- </c:if>
- <c:if test="${!empty someForm.someProperty}">
- </c:if>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <c:choose>
- <c:when test="${condition}">
- something
- </c:when>
- <c:otherwise>
- something else
- </c:otherwise>
- </c:choose>
- <c:if test="${condition}">
- something
- </c:if>
Advertisement
Add Comment
Please, Sign In to add comment