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]


  • 相关阅读:
    739. Daily Temperatures
    556. Next Greater Element III
    1078. Occurrences After Bigram
    1053. Previous Permutation With One Swap
    565. Array Nesting
    1052. Grumpy Bookstore Owner
    1051. Height Checker
    数据库入门及SQL基本语法
    ISCSI的概念
    配置一个IP SAN 存储服务器
  • 原文地址:https://www.cnblogs.com/tzeyeung/p/13531402.html
Copyright © 2011-2022 走看看