首页上一页 1 下一页尾页 3 条记录 1/1页
http://localhost:8088/06/findUserAction.do?method=finUser这里出错
发表在JavaWeb图书答疑
2009-11-04
是否精华
是
否
版块置顶:
是
否
为什么一直找不到路径呢,HTTP Status 500 - No action instance for path /findUserAction could be created,我在配制文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="userForm" type="com.struts.form.UserForm"/>
</form-beans>
<global-exceptions />
<global-forwards/>
<action-mappings>
<action path="/findUserAction" name="userForm"
scope="request" parameter="method"
type="com.struts.action.FindUserAction"/>
<action path="/findMenuAction" parameter="method"
type="com.struts.action.FindMenuAction"></action>
</action-mappings>
<message-resources parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>
在这里<action path="../findUserAction" name="userForm"用这种引用,会报400错误。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="userForm" type="com.struts.form.UserForm"/>
</form-beans>
<global-exceptions />
<global-forwards/>
<action-mappings>
<action path="/findUserAction" name="userForm"
scope="request" parameter="method"
type="com.struts.action.FindUserAction"/>
<action path="/findMenuAction" parameter="method"
type="com.struts.action.FindMenuAction"></action>
</action-mappings>
<message-resources parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>
在这里<action path="../findUserAction" name="userForm"用这种引用,会报400错误。