当我在我的jsp页面中写这行时,它在我加载页面时工作。
<fmt:parseNumber var="leftDays"
value="${( ao.dateOuverturePlis.getTime() - now.getTime() ) / (1000*60*60*24) }"
integerOnly="true" />
但是eclipse告诉我红色图标有错误
Multiple annotations found at this line:
- Encountered " "(" "( "" at line 1,
column 31.
Was expecting one of:
"." ...
">" ...
"gt" ...
...
- EL Syntax Error
所以我怎么才能摆脱这个红色错误图标?
答案 0 :(得分:1)
最终我们将.getTime()
更改为.time
,就像
<fmt:parseNumber var="leftDays"
value="${( ao.dateOuverturePlis.time - now.time ) / (1000*60*60*24) }"
integerOnly="true" />