STRUTS2 configuration file configuration DTD in MyEclipse to support auto-completion

Source: Internet
Author: User

If you want to configure in eclipse only, just window->preference->myeclipse->file and Eiditor->xml->xml in the menu bar catalog- >add Add:

Location where the Struts-2.3.dtd is selected as shown in

Key type check URI

Key: There are <! in Struts.xml DOCTYPE Struts Public
"-//apache software foundation//dtd Struts Configuration 2.3//en"
"Http://struts.apache.org/dtds/struts-2.3.dtd" > select http://struts.apache.org/dtds/struts-2.3.dtd to




In Eclispe after the configuration is saved, when you write the Struts.xml file, you can automatically appear prompt. But myeclipse to change the editor as follows

Because the default settings for MyEclipse are not set in the XML editor, but instead are set to myeclipse struts2 XML editor, so we want to set the XML file corresponding to the editor to

myeclipse XML editor.



General----->file Association----> File Types Select *.xml under the association editor Select MyEclipse XML Editor Click the default button set to click OK to save exit Can


STRUTS2 configuration file configuration DTD in MyEclipse to support auto-completion

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.