查询页面有个时限字段date类型,如何用jstl,与当前时间比较,判断是否超时?

查询页面,查询列表中有个时限字段:serviceDredgeDate,Date类型的,
我用 输出来了。
现在需要增加一个功能,就是判断,这个字段是否过期,与当前时间比较,如果过期,该行用红色 高亮显示。提示用户该单据处理日期超时了。

我尝试了几种都不成功,应该怎样写才能比较时间字段呢?
1.
/c:set
/c:if
这样写 报错:javax.servlet.jsp.el.ELException: Attempt to coerce a value of type "java.util.Date" to type "java.lang.Long"

2.
/c:set
/c:if
这样写 报错:javax.servlet.jsp.el.ELException: Attempt to coerce a value of type "java.sql.Timestamp" to type "java.lang.Long"

3.

/c:set
/c:if
这样写 报错:javax.servlet.jsp.el.ELException: An exception occured trying to convert String "下午04时27分55秒" to type "java.lang.Long"

谁能帮帮我?

第2种写法,改一下,你看好用不

/c:set
[color=red]/c:if

转成相同的类型就可以比较,如果用-符号,你转成long类型吧。应该可以这样
/c:set

aaaa
/c:if
话说,完全不用jsp

hudingchen解决问题




/c:when

报送延迟
/c:when

按计划报送
/c:otherwise
/c:choose
/c:if