Troubleshoot XML files in Eclipse without prompting problems

Source: Internet
Author: User
          today want to use Eclipse to build an SSH login demo, the results of the Struts.xml file tag properties can not be prompted, looked up some information, but only to solve the label, but For the attributes in the tag can not be prompted, after their own after some attempts to solve this problem, special posted out to share with you. 1. Window-preferences, search for XML catalog directly in the input box, select XML Catalog as shown,         2. Click on the "Add ..." button to fill in the dialog box that appears as follows: Location: Select File System, locate the STRUTS-2.3.DTD files in the Struts-2.0.14-all/struts-2.0.14/src/core/src/main/resources directory and click on the "hit                          ,         &NB Sp                 Open, or the   The Struts-2.3.dtd file is placed in the root directory of a computer's hard disk and introduced into the DTD file, in short, the location is to introduce a DTD file, as for you                   2.0 or 2-point DTD, all can.  key type: Select the URI. Key: Fill in the Http://struts.apache.org/dtds/struts-2.3.dtd. Fill out, all the way to determine, complete these 2 steps, re-open the Struts.xml file will be able to label the prompt. However, you need to complete the 3rd step in order to prompt for attributes in the tag.          3.window-preferences search for keys, click on the command bar in the page that appears to find the content assist line, See if the binding in this column has a value,    This value is your shortcut, and if it's not the shortcut you want, you can modify it. However, be sure to note that after the modification is complete, select "Editint XML              source" in the "When" column and click OK. Re-opening the Struts.xml file will allow you to prompt for attributes in the tag.
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.