1、myEclipse上建struts.xml文件如果没有自动提示就加上
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
2、一般如果是通过平台引用struts2的struts.xml文件会默认创建到src下,该文件就不需要配置什么。如果配置后不会自动提示可以通过以下步骤!
找到文件,可以去官网下载,网上也有很多
点击ok,关掉struts.xml文件重新打开,这时就会重新提示了