airfans

比较蠢一点的做法:

<c:if test="${not ((someBigDecimal < 0) or (someBigDecimal > 0))}">

 

(在JSP2.2里面)好点的做法:

 

${someBigDecimal.unscaledValue() == 0}

 

使用fn函数的做法:

${fn:isZero(someBigDecimal)}

 

 

分类:

技术点:

相关文章: