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]


  • 相关阅读:
    Maven------使用maven新建web项目出现问题 项目名称出现红色交叉
    Strut2------获取界面返回的session,application,parameter
    js之可迭代对象
    js字符串
    js之strict模式
    js系列之js简介
    python私有成员
    python之偏函数
    python之装饰器
    python之匿名函数
  • 原文地址:https://www.cnblogs.com/tzeyeung/p/13531402.html
Copyright © 2011-2022 走看看