日期:2014-05-17  浏览次数:20813 次

java web 菜鸟问题
报错:Unable to load configuration. - action - file:/F:/tomcat6.0/webapps/rsgl/WEB-INF/classes/struts.xml:9:52
代码:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
  <constant name="struts.enable.DynamicMethodInvocation" value="false"/>
  <constant name="struts.devMode" value="true"/>  
<package name="login" extends="struts-default">
<action name="login" class="wyf.cgq.LoginAction">
<result name="success">/Login.jsp</result>
<result name="manage" type="redirect-action">
<param name="actionName">impleeList</param>
</result>
<result name="personal" type="redirect-action">
<param name="actionName">personInfo</param>
</result>
<result name="input">/Login.jsp</result>
</action>
</package>

</struts>


------解决方案--------------------
WEB-INF/classes/struts.xml:9:52

看看 struts.xml的第9行是什么 ?
------解决方案--------------------
xml配置错误,检查下
------解决方案--------------------
<result name="manage" type="redirect-action">
<param name="actionName">impleeList</param>
你这里的impleeList是什么啊,路径吗,这里好像写得有问他, type="redirect" 就可以了啊 ,你写得是错的啊
------解决方案--------------------
<result name="manage" type="redirect-action">
你自定义了result?没有吧,换成<result name="manage" type="redirect">
--------------------------------
XML code

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
  <constant name="struts.enable.DynamicMethodInvocation" value="false"/>
  <constant name="struts.devMode" value="true"/>  
<package name="login" extends="struts-default">
<action name="login" class="wyf.cgq.LoginAction">
<result name="success">/Login.jsp</result>
<result name="manage" type="redirect">
<param name="actionName">impleeList</param>
</result>
<result name="personal" type="redirect">
<param name="actionName">personInfo</param>
</result>
<result name="input">/Login.jsp</result>
</action>
</package>

</struts>

------解决方案--------------------
我刚刚碰到过了。。少了jar包。。仔细看下你的报错信息,应该有个classnotfound的错误的