2.Unable to instantiate Action, templateAction, defined for 'template_list' in namespace '/'templateAction

1、错误说没有命名空间'templateAction,但是在struts里写了这个,名字跟Action的名字是一样的,为什么会报这个错误

2、反复检查路径和名字,都没有问题

3、发现没有对其进行注入操作,所以一定要记得注入

 

posted @ 2016-12-10 21:56  北极的大企鹅  阅读(223)  评论(0编辑  收藏  举报
阅读 - 79万