Could not find action or result There is no Action mapped for namespace / an错误:Could not find action or resultThere is no Action mapped for namespace / and action name user_del.struts.xml:/add.jsp/del.jspLoginAction.java:public class LoginActio

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 22:25:05
Could not find action or result There is no Action mapped for namespace / an错误:Could not find action or resultThere is no Action mapped for namespace / and action name user_del.struts.xml:/add.jsp/del.jspLoginAction.java:public class LoginActio
xR1K@+L PW: rM5%w HA89B:uQ8Z?ct/xMD }ޗ3iu\/%πaO0p{9!J D9Eut8x %;+C1;ss+mũo:$[UhPw ,qj֙o=Pk0BP’

Could not find action or result There is no Action mapped for namespace / an错误:Could not find action or resultThere is no Action mapped for namespace / and action name user_del.struts.xml:/add.jsp/del.jspLoginAction.java:public class LoginActio
Could not find action or result There is no Action mapped for namespace / an
错误:Could not find action or result
There is no Action mapped for namespace / and action name user_del.
struts.xml:
/add.jsp
/del.jsp
LoginAction.java:
public class LoginAction extends ActionSupport {
\x05public String add(){
\x05\x05return"add";
\x05}
\x05public String del(){
\x05\x05return"del";
\x05
}
}
index.jsp:
添加
删除

Could not find action or result There is no Action mapped for namespace / an错误:Could not find action or resultThere is no Action mapped for namespace / and action name user_del.struts.xml:/add.jsp/del.jspLoginAction.java:public class LoginActio
LoginAction类中del方法中应该这样写:return "user_del",或者struts.xml中的 /del.jsp
改成 /del.jsp