Posted on 2007-08-23 22:09
何嘉明 閱讀(632)
評(píng)論(0) 編輯 收藏 所屬分類:
EclipseIDE
在用Spring Side IDE新建項(xiàng)目的時(shí)候,用MyEclipse Struts Editor編輯器編輯Struts的配置文件的時(shí)候,出現(xiàn)如下錯(cuò)誤:
“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.在項(xiàng)目上點(diǎn)擊右鍵,選擇“myeclipe”下的“add struts capabilities”即可解決
方法2.若方法一不能解決,則找到項(xiàng)目所在目錄,找到.project文件。在<natures>節(jié)點(diǎn)中添加<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>,重新打開(kāi)項(xiàng)目問(wèn)題即可解決。