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/11/07 18:32:29
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