在struts.xml里面没有编写代码没有提示的解决方法:
第一步解压struts2的核心包,
第二步在解压文件里找到struts的dtd文件
第三步在eclipse里点击Preferences
第四步在搜索框输入xml,然后点击XML Catalog 然后再点击Add
第五步在接下来的弹框中点击File System添加入刚才struts2核心包解压出的dtd文件
如果Key type:选择 Public ID
key:填入
如果Key type:选择 URl
key:填入
第六步点击OK完成
转载于:https://my.oschina.net/ThreeTiger/blog/1301713