2013-03-09 98 views

回答

6

只需调用Date#getTime()

<p>The date property of a bean in milliseconds: ${bean.date.time}</p> 

JSTL没有必要在这种情况下,除非你正在运行一个史前JSP 1.x的猛兽,那么你需要使用<c:out>作为EL它在模板文本中不支持当时显示。