在沒有鏈接到互聯網的狀況下,編輯struts.xml文件時可能會沒有代碼提示,怎麼解決呢?方法以下:
一、查看struts.xml,找到<!DOCTYPE>中對dtd的描寫:http://struts.apache.org/dtds/struts-2.1.dtd
二、在struts2源碼包搜索找到此dtd文件
三、Window --> Preferences --> MyEclipse --> Files and Editors --> XML --> XML Catalog --> Add
apache
OK,搞定! 學習
(本學習筆記是根據傳智播客的視頻教程整理而來) spa