struts-config.xml报错是什么问题
来源:百度知道 编辑:UC知道 时间:2024/06/20 10:47:35
<?xml version="1.0" encoding="gbk"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>显示错在这句
<form-beans>
<form-bean name="loginForm" type="LoginForm"/>
</form-beans>
<data-sources />
<global-exceptions />
<global-forwards />
<action-mappings>
<action name="loginForm" path="/login" type="LoginAction">
<forward name="login" path="/index.jsp"></forward>
<forward name="success" path="/success.jsp"></forward>
</action>
</action-mappings><
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>显示错在这句
<form-beans>
<form-bean name="loginForm" type="LoginForm"/>
</form-beans>
<data-sources />
<global-exceptions />
<global-forwards />
<action-mappings>
<action name="loginForm" path="/login" type="LoginAction">
<forward name="login" path="/index.jsp"></forward>
<forward name="success" path="/success.jsp"></forward>
</action>
</action-mappings><
struts配置文件要符合DTD规则,第一项是<data-sources />你把<form-beans/>写在它前头当然报错了,把他俩换换位置。
type中你的有你类的路径,
这是你自己写的吧,不是电脑自动生成的吧
能把你的错误内容贴出来不?
估计应该是LoginForm应该放到一个包下
配置的时候写上包名
struts config.xml
struts 中怎么配置多个struts-config.xml文件
多个struts-config的问题
帮忙解析一下struts-config.xml里的一些声明
怎样在struts中的struts-config.xml中建立sql2000数据源。
把struts-config.xml文件换了地方放,项目里哪些地方的配置应该修改?
如何在struts-config.xml配置多个plug-in插件
是不是用了DispatchAction文件,struts-config.xml都至少要有一个parameter?
请大家看一下,在struts-config.xml中的<plug-in>是做什么的?谢谢
struts求助