hibernate3和struts1整合的时候struts-config.xml报错
来源:互联网 发布:淘宝补差价是什么意思 编辑:程序博客网 时间:2024/06/06 10:57
最近新建一个项目,发现jboss 启动的时候时,控制台一直报告异常信息:SAXParseException: The content of element type "struts-config" must match "(display-name?,description?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
<?xml version="1.0" encoding="utf-8"?><!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="employeeForm" type="com.hsp.web.forms.EmployeeForm" /></form-beans><action-mappings><action path="/login" parameter="flag" name="employeeForm"><forward name="ok" path="/WEB-INF/MainFrame.jsp"/><forward name="err" path="/WEB-INF/login.jsp"/></action><!-- 配置employeeaction --><action path="/employee" name="employeeForm" parameter="flag"><forward name="goAddEmpUi" path="/WEB-INF/addEmpUi.jsp" /><forward name="goListEmp" path="/WEB-INF/listEmp.jsp"/><forward name="goUpdEmpUi" path="/WEB-INF/updEmpUi.jsp"/></action></action-mappings><!-- 配置全局跳转 --><global-forwards><forward name="opererr" path="/WEB-INF/err.jsp" /><forward name="operok" path="/WEB-INF/ok.jsp" /></global-forwards><!-- 配置代理请求处理 DelegatingRequestProcessor ,它的用户是 <controller> <set-property property="processorClass" value="org.springframework.web.struts.DelegatingRequestProcessor"/></controller> --></struts-config>
报错的原因是:
global-forwards这个标签应该放在action-mappings标签前面
- hibernate3和struts1整合的时候struts-config.xml报错
- Struts1中web.xml和struts-config.xml的配置
- (struts1)struts-config.xml
- struts1.3中<struts-config>报错
- struts1的数据库配置struts-config.xml
- Struts1的 struts-config.xml说明
- struts1 中struts-config.xml的path原理
- struts1的配置文件struts-config.xml配置详解
- struts1配置(xml,struts-config.xml)
- hibernate3和struts开发整合
- 【Struts1.2总结】struts-config.xml配置
- 【Struts1.2总结】struts-config.xml配置
- 【Struts1.2总结】struts-config.xml配置
- 【STRUTS1.2】struts-config.xml详解
- Struts1.2总结 struts-config.xml配置
- 【Struts1.2】struts-config.xml配置详解
- 【Struts1.2总结】struts-config.xml配置
- struts1.x struts-config.xml配置详解
- Android Dialog(对话框中获取输入框的内容)
- Linux学习笔记——vi/vim编辑器命令快速入门
- QT 和SDL VDC NVR 双屏界面显示,最多可以支持4块屏
- 在VC中给Slider添加定制的Tooltips
- 带通配符的字符串比较
- hibernate3和struts1整合的时候struts-config.xml报错
- 初试javax.mail
- AFNetworking 库的导入报错问题解决
- 操作系统--作业管理
- Python yield 使用方法
- ubuntu 安装增强功能
- C语言实现矩阵相乘
- Sphinx 离线语音识别研究(一)
- MVC