Struts2.5 动态方法报错 找不到Action
2017-08-11 13:11
309 查看
官方说是由于安全性 , <constantname="struts.enable.DynamicMethodInvocation"value="true"></constant>,解决办法有两个
1.在package标签中加入: <global-allowed-methods>regex:.*</global-allowed-methods>
2.在action标签中加入:<allowed-methods>login,logout</allowed-methods> 里面放的是你的方法的名字,也可以用regex:.*
1.在package标签中加入: <global-allowed-methods>regex:.*</global-allowed-methods>
2.在action标签中加入:<allowed-methods>login,logout</allowed-methods> 里面放的是你的方法的名字,也可以用regex:.*
相关文章推荐
- Struts2.5动态方法调用 错误Messages:This method: edit for action product is not allowed!解决方法
- Messages:This method: edit for action XXX is not allowed!-Struts2.5动态方法调用错误解决方法
- Struts2.5配置动态加载action找不到页面
- struts 2.5 action的多分发 ---动态方法调用
- Struts2.5动态方法调用action和使用通配符访问action
- Struts2.5使用通配符的方式实现动态方法调用报错
- JavaEE struts2.5的动态方法调用
- 关于Struts2.5版本报"Wrong method was defined as an action method: index"的解决方法
- Struts 2读书笔记-----使用Action的动态方法调用
- 关于struts2.5以后 遇到的几点改变以及动态调用方法问题
- 关于eclipse+struts action找不到问题解决方法 There is no Action mapped for namespace
- 在使用struts的DispatchAction的时候出现Action找不到指定方法的错误
- Struts-2.5 Action动态调用与通配调用无效解决办法
- struts2.5动态方法绑定问题
- struts2.3.16.3升级遇到无法动态访问action的方法的问题。
- 升级Struts2.5后使用DMI动态方法调用遇到问题
- struts2.5 使用感叹号和通配符实现动态方法调用无效的问题及解决!
- 升级Struts2.5后使用DMI动态方法调用遇到问题
- struts2.3.1.2 使用动态方法配置 Action,使得一个Action可以处理多个请求
- [Struts2 框架学习] Struts2.5 通配符动态方法调用问题