myeclipse中struts.xml智能提醒

myeclipse中struts.xml智能提示在myeclipse中点击window-preferences-myeclipse enterprise workbench-

myeclipse中struts.xml智能提示
在myeclipse中点击window->preferences->myeclipse enterprise workbench->xml->XML Catalog.

  点击add然后出来对话框

  将struts2-core-2.1.8.1.jar文件解压,可以看到struts-2.1.7.dtd文件。

  在Location中选择dtd文件,
   我的选择是:D:\javalib\struts 2.x\struts-      2.1.8.1\lib\struts2-   core-2.1.8.1\struts-2.0.dtd

   Key Type:URI

   Key:http://struts.apache.org/dtds/struts-2.0.dtd


然后点击ok就行了!