Eclipse 中解决Struts.xml无提示

来源:互联网 发布:美国号码注册淘宝 编辑:程序博客网 时间:2024/05/23 17:34

1、选择:Window ->preferences->XML->点击Add 按钮;

2、Location值,通过File System 选择引入struts-2.0.dtd;

3、Key type,选择URI;

4、Key 为struts配置文件的文件头信息中struts-2.0.dtd地址,即:http://struts.apache.org/dtds/struts-2.0.dtd;

5、点击OK,即可;

6、这一步,至关重要,右击struts.xml,选择Open With(打开方式)为 XML Editor;

7、最后可通过:Alt+/ 方式,查看提示信息;OK!

 

疑问请Email:xiesj2009@163.com

原创粉丝点击