Could not find action or result:

来源:互联网 发布:魔兽世界7.25mac版插件 编辑:程序博客网 时间:2024/06/08 10:06
 WARN org.apache.struts2.dispatcher.Dispatcher:68 - Could not find action or result: /ssh_employee/employee_login.action

No result defined for action cn.mani123.employee.action.EmployeeAction and result input - action - file:/C:/Users/Media/Desktop/apache-tomcat-7.0.72/webapps/ssh_employee/WEB-INF/classes/struts.xml:8:65



struts.xml文件中result 的name属性设置为小写即可,不知原因...

<struts>
<package name="ssh" extends="struts-default" namespace="/">
<action name="employee_*" class="employeeAction" method="{1}">
<result name="input">/index.jsp</result>
<result name="success" type="redirect">/frame.html</result>
</action>
</package>
</struts>

0 0
原创粉丝点击