Myeclipse中struts2設定檔配置dtd以支援自動補全,myeclipsestruts2

來源:互聯網
上載者:User

Myeclipse中struts2設定檔配置dtd以支援自動補全,myeclipsestruts2

如果在eclipse中配置只需要,只需要在功能表列window->preference->Myeclipse->file and eiditor->xml->xml catalog->add添加:

Location中選中struts-2.3.dtd所在位置如所示

Key Type選中URI

Key:在struts.xml中有   <!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">    選中http://struts.apache.org/dtds/struts-2.3.dtd即可




在eclispe中如上配置以後 儲存,編寫struts.xml檔案時就可自動出現提示了。但是MyEclipse中還要如下改一下編輯器

因為對於MyEclipse來說 它的預設設定裡沒有設定XML編輯器,而是設定成了MyEclipse struts2的xml編輯器,所以我們要將xml檔案所對應的編輯器設定為

MyEclipse XML編輯器。



General----->File Association---->  File types選擇*.xml   下方關聯編輯器選擇  MyEclipse XML Editor 單擊default按鈕設定為預設   單擊OK儲存退出即可


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.