1)在struts的核心包中找到配置文件:default.properties 打开修改:
struts.action.extension=action,,
2)在项目中的struts.xml配置文件中配置常量
<constant name="struts.action.extension" value="action,do"/>