No configuration found for the specified action: 'user' in namespace: ''
来源:互联网 发布:康佳电视的网络功能 编辑:程序博客网 时间:2024/05/17 03:10
今天练习struts时项目报错No configuration found for the specified action: 'user' in namespace: ''. 查看网上的有的说 xml文件名是否为struts.xml?如果不是会出现这种问题。但是我的文件名称没有问题。
struts配置文件也没有问题,最后发下是我的web.xml有问题,filter-class配置错误;
应该是:
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
但是原来配置成了
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter</filter-class>
0 0
- No configuration found for the specified action: 'user' in namespace: ''
- No configuration found for the specified action: ''in namespace: '/'
- No configuration found for the specified action: '/' in namespace
- No configuration found for the specified action: 'xxx/xxx.action' in namespace: ''. Form action def
- 警告: No configuration found for the specified action: '/myNameSpace/login.action' in namespace: ''. F
- 警告: No configuration found for the specified action: 'loginPerson' in namespace: ''. Form action def
- No configuration found for the specified action: '/login.action' in namespace: '/myNameSpace'. Form
- No configuration found for the specified action: '/myNameSpace/login.action' in namespace: ''. Form
- No configuration found for the specified action: '/sum' in namespace: ''.Form action defaulting to '
- 警告: No configuration found for the specified action: 'hello/sum' in namespace: '/hello'. Form action
- 警告: No configuration found for the specified action: 'register' in namespace: '/jsp'. Form action de
- No configuration found for the specified action: '' in namespace: ''. Form action defaulting to 'act
- 警告: No configuration found for the specified action: 'login.action' in namespace: '/'.
- 警告: No configuration found for the specified action: 'login.action' in namespace: '/'.
- No configuration found for the specified action: 'login123.action' in namespace: '/'.
- 警告: No configuration found for the specified action: 'upload' in namespace: ''. Form action . . .
- 出现No configuration found for the specified action: 'tokenAction' in namespace: ''. Form action 警告的原因
- 警告: No configuration found for the specified action: 'ShowMessage' in namespace:
- 计算机操作系统第一次实验
- Duplicate id xxx, tag null, or parent id xxx with another fragment for xxxFragment
- 团队沟通时的逻辑的清晰表达
- 左旋转字符窜
- 11.23
- No configuration found for the specified action: 'user' in namespace: ''
- Ubuntu14.04全分布式安装Hadoop 2.7.2(一)创建用户组
- c++编程
- 小笔记之mysql数据库
- 将字符串S1中任何与字符串S2中匹配的字符都删除,实现函数squeeze(s1,s2).
- VC中int,char,char*,const char*,string等类型转换(转载)
- LeetCode 299. Bulls and Cows
- SwipeRefush
- c语言当中出现的问题