在struts.xml的配置文件中添加 <constant name="struts.action.extension" value="do"></constant>web
在src下建立struts.properties添加struts.action.extension=do注:若是這樣配置會覆蓋struts.xml的配置ide
在web.xml中配置xml