Badge condition code in Java for dashboard notifications
I am working on a java code, where new badge is shown with all the notifications. But I want them (new badge) to display only with latest once, if the notification is 2 month earlier with respect to the present date then the badge disappears.
enter image description here
Below is the code:-
<c:if test="${notice.newFlag eq 'Y'}"> <small class="badge pull-left bg-red"&开发者_如何学编程gt;New</small> </c:if>
I want them (new badge) to display only with latest once
精彩评论