Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction解决方案
来源:互联网 发布:中国到底多流氓知乎 编辑:程序博客网 时间:2024/05/17 04:37
出现这个问题的原因主要有两个
1、如果项目没有使用Spring,则struts.xml配置文件中,这个action的class属性的路径没有写完整,应该是包名.类名
2、如果项目使用了Spring,那就是applicationContext.xml里面没有为这个action定义bean。这样strus.xml中的对应action的class属性的值就是Spring配置文件中bean的id,比如:
applicationContext.xml
<bean id="adminAction" class="go.derek.action.AdminAction"scope="prototype"></bean>
struts.xml
<action name="admin" class="adminAction" method="execute"><result>/admin.jsp</result></action>
阅读全文
0 0
- Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解决方案
- Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction解决方案
- 关于Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解决方案
- Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction
- Unable to instantiate Action, defined for t' in namespace '/'XXXAction
- Unable to instantiate Action, XXXAction, defined for 'xx' in namespace 'xx'报错解决
- Unable to instantiate Action,xxx-action, defined for 'xxx' in namespace '/xxx/xxxx/xxxxx'Error crea
- 八、Unable to instantiate Action, xxx.action.DeleteAction, defined for 'delete' in namespace
- Unable to instantiate Action,,,,,,,,,defined for ',,,' in namespace '/,,,'null
- Unable to instantiate Action,,,,,,,,,defined for ',,,' in namespace '/,,,'null
- Unable to instantiate Action, goodsTypeAction, defined for 'goodsType_findAdvanced' in namespace '/
- Unable to instantiate Action, loginAction, defined for 'login' in namespace
- Unable to instantiate Action, categoryAction, defined for 'category_queryJoinAccount' in namespace
- Unable to instantiate Action, defined for in namespace '/'
- 整合SSH后出现Unable to instantiate Action, student, defined for 'add_StudentAction' in namespace '/'stude
- 出现"Unable to instantiate Action,xxxxx, defined for 'login' in namespace '/' xxxxx 解决办法
- 异常4: Unable to instantiate Action, AddZhangMuAction, defined for 'AddZhangAction' in namespace ...
- Unable to instantiate Action, MenuAction, defined for 'QueryMenuAll' in namespace '/'MenuAction
- 【消息队列】if-mdp使用手册
- 计算机视觉、机器学习相关领域论文和源代码大集合
- markdown学习笔记
- 在BAE tomcat环境下实现讯飞TTS在线文字转语音
- rocketmq的特性
- Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction解决方案
- 49个jQuery获取对象代码经典片段
- PHP发送邮件
- cookie简介
- BZOJ 4216: Pig 分块
- 算法——A-star算法
- jQuery实现:将文本内的部分字段增添样式标红
- 【OpenCV】双目测距(双目标定、双目校正和立体匹配)
- [ubuntu] 快捷键