strut2没有XML提示信息解决办法

来源:互联网 发布:就业数据网报系统 编辑:程序博客网 时间:2024/05/22 07:56

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!

0 0
原创粉丝点击