servlet:
request.setAttribute("latestRecord",null); //request.setAttribute("latestRecord",latestRecord); String url = "/WEB-INF/views/main.jsp"; request.getRequestDispatcher(url).forward(request, response);jsp:
<c:if test="${latestRecord==null}" var="condition1"> <h1>dddd--- ${condition1} ---d</h1> </c:if> <c:choose> <c:when test="${latestRecord==null}"> <h1>is ${condition1} null</h1> </c:when> <c:otherwise> <h1>not ${condition1} null</h1> </c:otherwise> </c:choose>