<c:choose>
<c:when test="${no2nd}<0">
<c:out value="下降"/>
</c:when>
<c:otherwise>
<c:out value="上升"/>
</c:otherwise>
</c:choose>
Action定义的no2nd为String类型,值为-0.0xxxx
通过request.setAttribute("no2nd",(Integer)Integer.parse("no2nd"))报异常,不能从String转成Integer
所以页面上的判断一直出错,始终显示“上升”不显示“下降”不知道什么原因
注意no2nd是变量为什么不在action定义一个int的变量接受no2nd转化的值呢?