查询页面,查询列表中有个时限字段: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"
谁能帮帮我?