Java大牛养成记(5)——The content of element type "struts" must match "(package|include|bean|constant)*".
来源:互联网 发布:电脑桌面备忘提醒软件 编辑:程序博客网 时间:2024/05/16 11:13
背景:最近在学习SSH视频,在视频里老师讲了很多特别实用的方法,也提供了很多关于框架的知识,自己的小脑袋瓜有点容量不足,常常大脑短路,还好有“度娘”的存在,帮助我度过难关。
一、出现问题
二、问题原因
三、解决方案
出现该错误说明xml不符合dtd规范,提示信息已经给出来了,它的意思是struts下的子节点只能是package、include、bean或者constant。
而我struts标签下却有<action/>,所以报错。
解决办法是将<action/>标签移到package的子节点中,OK,问题解决了!
四、学习心得
1、办法总比困难多,只要静下心来,一切都不是问题。
2、捋清楚了就简单了。
0 0
- Java大牛养成记(5)——The content of element type "struts" must match "(package|include|bean|constant)*".
- The content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-s
- The content of element type "struts" must match "(package|include|bean|constant)*".
- he content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-stack?)".解决方法
- The content of element type "package" must match...
- The content of element type "package" must match 。。。。。。
- The content of element type "package" must match 随笔
- struts.xml错误提示:The content of element type "package" must match "(result-types?,interceptors?,defaul
- The content of element type "struts-config" must match 解决方案
- struts.xml中提示content of element type "package" must match
- struts-config.xml配置文件顺序异常: The content of element type "struts-config" must match
- [com.opensymphony.xwork2.util.DomHelper] The content of element type "package" must match
- 如果出现The content of element type "package" must match "(result-types?,interceptors?,default-interce
- “The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2配置文件错误(The content of element type “package” must match**)
- org.xml.sax.SAXParseException The content of element type "package" must match "(result-types?,inter
- flag刷新
- 在git上建立自己的博客
- [网络流24题]T1 飞行员配对方案问题
- 【hibernate】关联映射
- 221. Maximal Square
- Java大牛养成记(5)——The content of element type "struts" must match "(package|include|bean|constant)*".
- 各类数据库查询自动增加序号
- JavaScript 获取访问主机资源信息
- mybatis 下连接mysql各种问题
- 内部类
- C语言函数与递归四
- 通过 LoaderManager + CursorLoader加载通讯录中所有人
- 什么是中间件
- 省选拔赛总结——有收获也有遗憾