遇到一个错误
基本情况是这样:
我有几个jsp页面,在一个jsp中有include action,当然这个action 的result是另外的某个jsp,然后这个被include后显示的jsp里面还存在 include action
Action1 result jsp1 , result type=chain, jsp1 include Action2
Action2 result jsp2 , result type=chain, jsp2 include Action3
Action3 result jsp3 , result type=chain
出现了struts2值栈异常:
排查后,发现Action2和Action3 里面有一个相同的属性,而且类型不同
这时出现了exception
分析后,应该是这两个Action,因为是同属在一个HTTP过程中request-->response,那么在服务端共享一个ActionContextMap,也就是说Action2,Action3使用的值盏是同一个,但是出现了属性名相同,类型不同的情况,出问题了
修改参数名称后,解决了这个问题。
希望
分享到:
相关推荐
struts2-core-2.0.1.jar, struts2-core-2.0.11.1.jar, struts2-core-2.0.11.2.jar, struts2-core-2.0.11.jar, struts2-core-2.0.12.jar, struts2-core-2.0.14.jar, struts2-core-2.0.5.jar, struts2-core-2.0.6.jar,...
struts2-ssl-plugin-1.2.1.jar
-- 为修复struts2 s2-016、s2-017漏洞,重写DefaultActionMapper --> <bean type="org.apache.struts2.dispatcher.mapper.ActionMapper" name="myDefaultActionMapper" class=...
Struts2-core-2.0.12.jar是Apache Struts框架的一个核心组件包,它在Java Web开发中扮演着至关重要的角色。Struts2是一个开源的MVC(Model-View-Controller)框架,用于构建高效、可扩展的Web应用程序。这个版本号...
struts2-struts1-plugin-2.1.6.jar
struts2-spring-plugin-2.3.15.3.jar struts整合Spring的插件Jar包。
struts2-jfreechart-plugin-2.1.8.1.jar
struts2-convention-plugin-2.1.6.jar
struts2-config-browser-plugin-2.3.24.jar, struts2-core-2.3.24.jar, struts2-jasperreports-plugin-2.3.24.jar, struts2-jfreechart-plugin-2.3.24.jar, struts2-pell-multipart-plugin-2.3.24.jar, struts2-...
最新struts2-spring-plugin-2.3.24.1.jar
首先,我们来看`struts-json-plugin-2.1.8.jar`,这是Struts2的JSON插件,它允许Struts2的动作类直接返回JSON格式的数据,方便前端进行Ajax请求处理。该插件在2.1.8版本中修复了若干bug,并提供了对JSON输出的支持。...
struts2必须核心jar包, struts2-core-2.3.1.2.jar
6. **Interceptor栈配置**: 在`struts-default.xml`或自定义配置文件中定义的拦截器栈,决定了请求处理的流程。 通过深入研究`struts2-core-2.3.7`源码,我们可以了解Struts2如何处理请求,执行Action,应用拦截器...
struts2-core-2.1.6.jarstruts2-core-2.1.6.jarstruts2-core-2.1.6.jarstruts2-core-2.1.6.jarstruts2-core-2.1.6.jarstruts2-core-2.1.6.jarstruts2-core-2.1.6.jarstruts2-core-2.1.6.jarstruts2-core-2.1.6.jar...
struts2-core-2.2.1-sources.jar 源码,学strut2源码时能用到的
struts2-jfreechart-plugin-2.0.11.jarstruts2-jfreechart-plugin-2.0.11.jarstruts2-jfreechart-plugin-2.0.11.jar
struts2-core-2.3.15.1.jar
struts2-dojo 跨域时解决拒绝访问的问题
搭建struts2 + spring框架时需要使用的关联jar struts.xml中action的属性class引用applicationContext中bean的属性id指向的值
struts2-spring-plugin-2.2.1.jarstruts2-spring-plugin-2.2.1.jarstruts2-spring-plugin-2.2.1.jar