How can I utilize the "ft" value in a c:if statement?
<% Date dNow = new Date( );
SimpleDateFormat ft =
new SimpleDateFormat ("yyyy.MM.dd hh:mm:ss a zzz");
out.print( "<h2 align=\"center\">" + ft.format(dNow) + "</h2>");%>
This is my approach to including code in JSP(sample code)
<c:if test="${row.RecvDate}-$(ft) > 48"></c:if> .....
Description of my objective: I am required to subtract two dates and determine if the result is over 48 hours. If it is, the row should be highlighted in green, otherwise no change.
I extract values from a database and implement validation on the JSP page to highlight rows based on the given condition.