Configure the dtd in the struts2 configuration file in Myeclipse to support Automatic completion.

Source: Internet
Author: User

Configure the dtd in the struts2 configuration file in Myeclipse to support Automatic completion.

If you only need to configure in eclipse, you only need to add in the menu bar window-> preference-> Myeclipse-> file and eiditor-> xml catalog-> add:

Location shows the Location of the selected struts-2.3.dtd

Key Type selected URI

Key: In struts. xml, <! DOCTYPE struts PUBLIC
"-// Apache Software Foundation // DTD Struts Configuration 2.3 // EN"
Select http://struts.apache.org/dtds/struts-2.3.dtd.




If you save the configuration in eclispe, the prompt will automatically appear when you compile the struts. xml file. However, in MyEclipse, you need to change the editor as follows:

For MyEclipse, the XML editor is not set in its default settings, but is set to the xml editor of MyEclipse struts2. Therefore, we need to set the editor corresponding to the xml file

MyEclipse XML editor.



General -----> File Association ----> File types Select *. xml under the associated Editor, select MyEclipse XML Editor, and click the default button to set it to OK by default. Save and exit.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.