myeclipse导入约束方法步骤如下:
1、拷贝struts.apache.org/dtds/struts-2.1.7.dtd地址,前面加上http://
2、MyEclipse的window、preferences,搜索XML Catelog
3、点击add按钮
Location:dtd文件的路径,如果当前项目中有,就按workspace,如果存在于电脑上某个位置,就按File System
Key Type:URI
Key:struts.apache.org/dtds/struts-2.1.7.dtd 前面加上http://