The file cannot be validated as there was a connection problem. struts-config.xml
2015-02-05 15:45
821 查看
The file cannot be validated as there was a connection problem.这个问题我是在学struts1.3时候遇到的。好像是由于没有正确书写<!DOCTYPE>的格式造成下文中书写xml代码时没有提示,没有按人家的要求来,造成错误找不出来。后来重新正确书写了这个东西,下边的代码自然好些多了,就没问题了,所以建议大家正确书写。
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
在上面的声明中,声明了文档的根元素是 struts-config,它在公共标识符被定义为 "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" 的 DTD 中进行了定义。浏览器将明白如何寻找匹配此公共标识符的 DTD。如果找不到,浏览器将使用公共标识符后面的 URL 作为寻找 DTD 的位置。
提示和注释:
注释:<!DOCTYPE> 标签没有结束标签!
注意:若不敢确定格式的书写是否正确,则可以访问后边的url,这时可以下载到一个对应的DTD文件,然后里边就有正确的格式书写,复制粘贴即可。。
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
在上面的声明中,声明了文档的根元素是 struts-config,它在公共标识符被定义为 "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" 的 DTD 中进行了定义。浏览器将明白如何寻找匹配此公共标识符的 DTD。如果找不到,浏览器将使用公共标识符后面的 URL 作为寻找 DTD 的位置。
提示和注释:
注释:<!DOCTYPE> 标签没有结束标签!
注意:若不敢确定格式的书写是否正确,则可以访问后边的url,这时可以下载到一个对应的DTD文件,然后里边就有正确的格式书写,复制粘贴即可。。
相关文章推荐
- (转)hibernate.cfg.xml:The file cannot be validated as there was a connection problem
- The file cannot be validated as there was a connection problem. mybatis配置
- 在ibatis的提示出错:“The file cannot be validated as there was a connection problem. ”
- The file cannot be validated as the XML definition 异常解决办法
- The file cannot be validated as the XML definition...
- The file cannot be validated as theho st "struts.apache.org" is currently unreachable.
- mybatis的xml文件没有提示,出现the file cannot be validated as the XML definition.....
- 异常The file cannot be validated as the XML definition "http://www.opensymphony.com/
- struts2的“The file cannot be validated as the host "struts.apache.org" is currently unreachable"问题解决
- AddFieldAsXml cannot be used to set the InternalName correctly
- myeclipse不能使用默认编辑器打开导入的struts项目的struts-config.xml,Therefore the MyEclipse Struts Editor may not be u
- struts.xml Included file cannot be found
- error C2220: warning treated as error - no 'object' file generated warning C4819: The file contains a character that cannot be represented in the current code page (936).
- 安装VisualDSP++出现Install cannot proceed.Could not find XML file or the XML file may be corrupted!
- 安装VisualDSP++出现Install cannot proceed.Could not find XML file or the XML file may be corrupted!
- The absolute uri: http://struts.apache.org/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application
- Struts提交form之后抛出异常java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null
- 解决MyEclipse Struts.xml 中通配符报错“xx cannot be found in the namespace”
- sql server 2000 安装错误:the specified file cannot be opened as read-only .ensure the source file is pre
- The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar file