
eclipse怎么添加本地的dtd文件
2个回答
2015-12-18 · 知道合伙人数码行家

知道合伙人数码行家
采纳数:117533
获赞数:517213
长期从事计算机组装,维护,网络组建及管理。对计算机硬件、操作系统安装、典型网络设备具有详细认知。
向TA提问 私信TA
关注

展开全部
以添加struts2的DTD文件为例,步骤如下:
1、window - preferences - xml catalog
2、add - location 选择 File System
3、Key Type 选择URI
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="false" />
<include file="example.xml"/>
<!-- Add packages here -->
</struts>
2015-05-13
展开全部
步骤如下:
1:window --> preferencrs --> xml --> xml catalog --> add
2:location 选择 file system,然后选择你的本地dtd文件。
3:key type 选择uri。
4:key 填入下面用红色标注的值
<!doctype struts public
"-//apache software foundation//dtd struts configuration 2.0//en"
"http struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.enable.dynamicmethodinvocation" value="false" />
<constant name="struts.devmode" value="false" />
<include file="example.xml"/>
<!-- add packages here -->
</struts>
5:保存之后,重启eclipse/myeclipse。
1:window --> preferencrs --> xml --> xml catalog --> add
2:location 选择 file system,然后选择你的本地dtd文件。
3:key type 选择uri。
4:key 填入下面用红色标注的值
<!doctype struts public
"-//apache software foundation//dtd struts configuration 2.0//en"
"http struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.enable.dynamicmethodinvocation" value="false" />
<constant name="struts.devmode" value="false" />
<include file="example.xml"/>
<!-- add packages here -->
</struts>
5:保存之后,重启eclipse/myeclipse。
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询