您的位置:首页 > 编程语言 > Java开发

myeclipse中手工添加dtd支持

2009-10-21 20:15 375 查看
在myEclipse里面配置struts2.xml的是后老是出现<?xml version="1.0" encoding="UTF-8" ?>报错,而且写标签的时候没有提示,后来发现时myeclipse里面没有引入http://struts.apache.org/dtds/struts-2.0.dtd,在网上找了好久终于找到引入dtd的方法:

在eclipse中 struts2配制文件中不支持提示,这时需要手工添加dtd的支持

Preferences -> MyEclipse Blue Edition -> Files and Editors -> XML -> XML Catalog -> Add

1)Location中找到struts2.0.dtd的地址
2)Key Type中选中URI
3)Key : 在struts.xml中找到dtd的地址:http://struts.apache.org/dtds/struts-2.0.dtd
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: