码迷,mamicode.com
首页 > 其他好文 > 详细

DTD配置步骤

时间:2014-11-03 01:28:16      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:dtd配置步骤

要添加DTD的配置文件 
<!DOCTYPE struts PUBLIC 
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> 
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" 
"http://struts.apache.org/dtds/struts-2.0.dtd"> 

1、window->preference->Myeclipse->file and eiditor->xml->xml catalog. 

2、点击add,在弹出的框中按要求填写。其中location中填写你的dtd文件的路径,Keytype默认即可。key就是输DOCTYPE中内容,例如Struts2就输入代码 
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN 
Alternatibe-web-address的内容:http://struts.apache.org/dtds/struts-2.0.dtd 

3、重启Myeclipse,即可。 
注:DTD文件必须和你的xml的DOCTYPE中的版本一样,比如Struts2你用的DTD文件是struts-2.0.dtd,则你的DOCTYPE中的也改是struts-2.0.dtd。另外DTD文件的话就在你下载的开发包中找。

本文出自 “张志鹏” 博客,请务必保留此出处http://zhangzhipeng.blog.51cto.com/9115459/1571050

DTD配置步骤

标签:dtd配置步骤

原文地址:http://zhangzhipeng.blog.51cto.com/9115459/1571050

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!