标签:
-------先在struts文件夹中的lib包中的 struts2-core-2.1.8.1.jar 解压开,找到 struts-2.0.dtd 文件
-------struts.xml文件中头部有:http://struts.apache.org/dtds/struts-2.0.dtd
-------Myeclipse下window -------preferences -------Myeclipse--------XML-------XML catalog -------add (或者直接输入catalog)
在Location中加入struts-2.0.dtd所在的地址,
Key Type 中选择URL,
Key中加入http://struts.apache.org/dtds/struts-2.0.dtd
这时我们可以看到Struts.xml文件中还有叹号,我们可以在Struts标签与package标签中打入一个回车后保存即可
标签:
原文地址:http://www.cnblogs.com/wss2881938/p/4591072.html