请求URL:http://localhost:8080/helloworld/test!list.action?name=aaa
错误log:
java.lang.IllegalAccessError: HttpParameters are immutable, you cannot put value directly!
如果去掉参数:http://localhost:8080/helloworld/test!list.action是可以正常执行的
因为有大量带参数的请求,不可能直接去掉,有什么办法解决吗?
原因也大概知道
2.3用的xwork-core的jar,返回的MAP
Map<String, Object> parameters = invocation.getInvocationContext().getParameters();
2.5中xwork-core合并进入struts,返回值改了
HttpParameters parameters = invocation.getInvocationContext().getParameters();
HttpParameters 类型为 Map<String, Parameter>
Parameter不能创建
现在找不到解决方法,请高手指教!
你好!我想问一下您当初升级struts2.5的时候那个url参数问题是如何解决的