struts2 jar包升级到2.3.15后出现问题

时间:2023-01-22 17:04:47

Error on line 261, column 13 in template/simple/optiontransferselect.ftl
stack.findValue(parameters.doubleListKey) is undefined.
It cannot be assigned to doubleItemKey
The problematic instruction:
----------
==> assignment: doubleItemKey=stack.findValue(parameters.doubleListKey) [on line 261, column 13 in template/simple/optiontransferselect.ftl]
 in user-directive s.iterator [on line 259, column 9 in template/simple/optiontransferselect.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Error on line 261, column 13 in template/simple/optiontransferselect.ftl
stack.findValue(parameters.doubleListKey) is undefined.
It cannot be assigned to doubleItemKey

3 个解决方案

#1


我们最近也遇到了这个问题,同问

#2


struts2 升级的时候要到2.3.15.1以后才行,之前的版本有bug。用这个版本的时候还有一些其他的jar包也要更新才可以。

#3


更新后,以前的一些方法可能会被新的方法替换.找到对应的方法就行.
一般情况下,不要轻易更新.

#1


我们最近也遇到了这个问题,同问

#2


struts2 升级的时候要到2.3.15.1以后才行,之前的版本有bug。用这个版本的时候还有一些其他的jar包也要更新才可以。

#3


更新后,以前的一些方法可能会被新的方法替换.找到对应的方法就行.
一般情况下,不要轻易更新.