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

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

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

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

原文地址:https://www.cnblogs.com/liuyangfirst/p/6158408.html