![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jsp
ml863606
这个作者很懒,什么都没留下…
展开
-
jstl forEach 一组数字从大到小输出
一开始的时候是正常的,从小到大输出<!--从小到大输出,0...10--><c:forEach begin="0" end="10" var="score"> ${score}</c:forEach>我想着倒过来试试看呢,完全没得反应,尴尬了<!--倒过来,没得反应--><c:forEach b原创 2019-02-22 15:37:25 · 1378 阅读 · 0 评论 -
el 三元运算符 java.lang.NumberFormatException: For input string: XXX
score是Integer类型的${empty score ? '暂未打星' : score+"星"}报了一个Caused by: java.lang.NumberFormatException: For input string: "星"错误的原因是:先把"星"转化为Integer类型,然后准备+score,然而"星"转成不了Integer类型,所以报了个NumberFormatE...原创 2019-03-12 10:30:07 · 646 阅读 · 2 评论