java.lang.NoSuchMethodException: com.lihui.action.StudentAction.execute()
packagecom.lihui.action;importcom.opensymphony.xwork2.ActionSupport;publicclassStuden...
package com.lihui.action;
import com.opensymphony.xwork2.ActionSupport;
public class StudentAction extends ActionSupport {
public String add (){
return "success";
}
public String delete(){
return "success";
}
}
<struts>
<constant name="struts.devMode" value = "true"/>
<package name="actions" namespace="/actions" extends="struts-default">
<action name="Student*" class = "com.lihui.action.StudentAction" method = "{1}">
<result >
/Student{1}_success.jsp
</result>
</action>
</package>
</struts> 展开
import com.opensymphony.xwork2.ActionSupport;
public class StudentAction extends ActionSupport {
public String add (){
return "success";
}
public String delete(){
return "success";
}
}
<struts>
<constant name="struts.devMode" value = "true"/>
<package name="actions" namespace="/actions" extends="struts-default">
<action name="Student*" class = "com.lihui.action.StudentAction" method = "{1}">
<result >
/Student{1}_success.jsp
</result>
</action>
</package>
</struts> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询