No automatic solution is prompted for the DWR. xml configuration file in myeclipse.

Source: Internet
Author: User

Recently, in the DWR framework, we know that the main configuration file DWR. xml of the dwr framework is used to tell the browser which method of the server can be exposed to the browser.

Therefore, a DWR is created under a web project. XML file, but the imported DTD still does not appear prompt, carefully check the DTD, no problem, and myeclipse is not DWR. what should I do if XML provides associated DTD? After checking the information, you just need to import the DTD to the XML in myeclipse. The method is as follows:

First, go to the DWR official website to add the DWR. download the JAR file, decompress it (decompress it to a directory), find its ORG/directwebremoting Directory, which contains several DTD files. Here I use the dwr30.dtd file, find the file, copy the absolute path of the file (for example, my path is D: \ DWR \ org \ directwebremoting \ dwr30.dtd), and open myeclipse, open preference-> file and editors-> XML catalog, and click the Add option on the right. The following interface is displayed:

Then paste the absolute path of the DTD we just found in the location (My ID is D: \ DWR \ org \ directwebremoting \ dwr30.dtd), and select the key type column.URLAnd then fill in the URL corresponding to the dwr30.dtd in the key column. The decompressed DWR directory contains a DWR. xml file. Copy this sentence.Http://getahead.org/dwr/dwr30.dtd,Then click OK to re-open DWR. an automatic prompt is displayed when the XML file is written. This method is not only applicable to DWR. XML file, no matter what XML file, you only need to know its DTD, and then find the corresponding URL, so you can set it later.

Finally, the DWR. xml file information is as follows:

  
     doctype DWR public"-// getahead limited // DTD direct Web remoting 3.0 // en "" http://getahead.org/dwr/dwr30.dtd " >    DWR  >    DWR  > 

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.