WARNING: Package of target [javax.servlet.jsp.jstl.core.LoopTagSupport$1Status@7439e436] or package of member [public int javax.servlet.jsp.jstl.core.LoopTagSupport$1Status.getIndex()] are excluded!

Struts2爆出045漏洞后,将struts版本升级到了2.3.32.但是在验证时发现有些jstl循环未出现预期的结果。

debug发现,数据没有问题,断定是前端页面显示出了问题。根据日志信息WARNING: Package of target [javax.servlet.jsp.jstl.core.LoopTagSupport$1Status@7439e436] or package of member [public int javax.servlet.jsp.jstl.core.LoopTagSupport$1Status.getIndex()] are excluded!,断定是该版本的jstl的循环有bug。当使用<c:for>标签的status属性的index时,jstl循环就停止执行了。

后来将<c:for>循环改为了<s:iterator>后问题解决

原文地址:https://www.cnblogs.com/zsxneil/p/6595826.html