<%List<Student> studentsInfo = (List<Student>)request.getAttribute("studentsInfo");%>
在jsp中取List中单个值,单独输出studentsInfo可以,但studentsInfo.get(i)就报NullPointerException真TM头痛啊以前从来没遇到过,有没有人遇到这种情况,难道是springmvc对request里的值做了限制????
在jsp中取List中单个值,单独输出studentsInfo可以,但studentsInfo.get(i)就报NullPointerException真TM头痛啊以前从来没遇到过,有没有人遇到这种情况,难道是springmvc对request里的值做了限制????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货