首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何连接struts-config.1-3.10.dtd文件我的struts-config.xml

如何连接struts-config.1-3.10.dtd文件我的struts-config.xml
EN

Stack Overflow用户
提问于 2012-12-22 10:07:43
回答 1查看 4.2K关注 0票数 1

我是struts的初学者。我收到了一个在classroom.The中从未听说过的错误。

代码语言:javascript
复制
    <!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><form-beans>    
<form-bean name="form1" type="LoginForm"/>    
</form-beans><action-mappings>    
<action path="/LoginAction" name="form1" type="LoginAction"/>    
<forward name="success" path="/success.jsp"/>    
<forward name="failuer" path="/Failure.jsp"/   
</action>    
</action-mappings>    
</struts-config>

现在,<!DOCTYPE>标记和di上的问题显示了以下错误

“下载指定的资源失败。处理资源时出错

代码语言:javascript
复制
'http://struts.apache.org/dtds/struts-config_1...
"http://struts.apache.org/dtds/struts-config_1_3.dtd">"

在尝试修复此错误时,我从http://struts.apache.org/1.x/struts-core/dtddoc/struts-config_1_3.dtd.org.html下载了.dtd文件并保存了it.In struts-config.xml,我试图找到保存下载文件的位置,但无法正常工作。我应该做什么来修复这个problem.Where我去wrong.Any响应将被评估。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-01-05 20:02:46

将下载的"struts-config_1_3.dtd"文件放入WEB-INF文件夹。

另外,DOCTYPE标记中的struts-config.xml替换以下内容

代码语言:javascript
复制
<!DOCTYPE struts-config PUBLIC     
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"     "http://struts.apache.org/dtds/struts-config_1_3.dtd">


with 


<!DOCTYPE struts-config PUBLIC     
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "struts-config_1_3.dtd">
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13999438

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档