Posted on 2007-08-23 22:09
何嘉明 閱讀(629)
評論(0) 編輯 收藏 所屬分類:
EclipseIDE
在用Spring Side IDE新建項目的時候,用MyEclipse Struts Editor編輯器編輯Struts的配置文件的時候,出現(xiàn)如下錯誤:
“Project 'abc' is not configured as a MyEclipse Web-Struts Project. Therefore the MyEclipse Struts Editor may not be used with struts-config.xml. The default XML Editor has been used to open the file instead.”
解決方法:
方法1.在項目上點擊右鍵,選擇“myeclipe”下的“add struts capabilities”即可解決
方法2.若方法一不能解決,則找到項目所在目錄,找到.project文件。在<natures>節(jié)點中添加<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>,重新打開項目問題即可解決。