zoukankan      html  css  js  c++  java
  • myeclipse配置Struts2.xml Referenced file contains errors (http://struts.apache.org/dtds/struts-2.0.dtd

    Struts2.xml 文件头出现这样错误

    Referenced file contains errors (http://struts.apache.org/dtds/struts-2.0.dtd). For more information, right click on the message in the Problems View and select "Show Details..."

    解决办法1: 

    在myeclipse9.0,  [MyEclipse]-[Files-Editors]-[XML]-[XML Catalog]    查找到  “-//Apache Software Foundation//DTD Struts Configuration 2.1//EN ”  

     和

    “-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN ” 

    只需将struts.xml文件  “-//Apache Software Foundation//DTD Struts Configuration 2.0//EN ”   2.0修改为对应的 2.1或是2.1.7   ctrl+s即可

    解决办法2: 

    如果在myeclipse中无法找到 [Files-Editors]选项键,则新建一个web project项目

    生成该 MyEclipse9.0系统版本 的 structs.xml文件。

    根据新项目demo1中的structs.xml中的

    -//Apache Software Foundation//DTD Struts Configuration 2.1//EN ”  

    “-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN ” 

    将出现错误的struts.xml文件  “-//Apache Software Foundation//DTD Struts Configuration 2.0//EN ”

     2.0修改为对应的 2.1或是2.1.7   ctrl+s即可

    生成对应的structs.xml步骤如下:

    在新建的项目demo1->[MyEclipse]->[Project Facets]->[install Apache Structs  (2.x)facet]->[finish]


  • 相关阅读:
    问题 F: A+B和C (15)
    问题 E: Shortest Distance (20)
    完数
    分解质因数
    念整数
    问题 B: 习题7-7 复制字符串中的元音字母
    问题 A: 习题7-5 字符串逆序存放
    问题 D: 习题6-12 解密
    计算机的重点编码方式
    PyCharm更换第三方包源
  • 原文地址:https://www.cnblogs.com/tzeyeung/p/13531402.html
Copyright © 2011-2022 走看看