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 >