Could not find action or result There is no Action mapped for namespace / and action name Login.-用struts2做了个简单的登录界面 代码如下struts.xml\x05\x05 \x05\x05\x05\x05\x05 /true.jsp\x05\x05 \x05web.xml\x05\x05\x05struts2\x05\x05\x05

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 19:53:09
Could not find action or result There is no Action mapped for namespace / and action name Login.-用struts2做了个简单的登录界面 代码如下struts.xml\x05\x05 \x05\x05\x05\x05\x05 /true.jsp\x05\x05 \x05web.xml\x05\x05\x05struts2\x05\x05\x05
xUjA~!Piw7ݭI BN(ɴl,B+Z*ERHA(E =/S Ns"═ L܂&p\,"N\P|9L1 L M`$1 @Wrn8ҭF#,V:nW?5lJYGQڽx{g[Ϫǯ dkΦYaiyi/mB+mPߏG+{B.IQ]B`#iOHf%(a)̗L"C%'+Yb>؃;F>-L9Z(DZ `W`:i*M@6d,8Bх(Y1qg:5) .50Q1=ק(>ux: >!zGwt|PCj Wh"MlLc!ŒERA;Md"deXv02mYRx9L2 1} yIЕsS;LtE: %J1@4=F2n(xLE8P%f ԱnJ\&5MXHZ|-.dF K%TCU4#iPSLkrr\éO_JM9}mXnV*"jK_ϪǟMlOJb_;-6+?hn.Oޅ%X拞RbQ}獀7+%ǎBʋ織]=v

Could not find action or result There is no Action mapped for namespace / and action name Login.-用struts2做了个简单的登录界面 代码如下struts.xml\x05\x05 \x05\x05\x05\x05\x05 /true.jsp\x05\x05 \x05web.xml\x05\x05\x05struts2\x05\x05\x05
Could not find action or result There is no Action mapped for namespace / and action name Login.-
用struts2做了个简单的登录界面 代码如下
struts.xml
\x05
\x05 \x05\x05
\x05\x05\x05 /true.jsp
\x05\x05
\x05
web.xml
\x05
\x05\x05struts2
\x05\x05
\x05\x05\x05org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
\x05\x05
\x05\x05
\x05
\x05\x05struts2
\x05\x05/*
\x05\x05
index.jsp
Login.java
package controller;
public class Login {
\x05private String username;
\x05private String password;
\x05public String getUsername() {
\x05\x05return username;
\x05}
\x05public void setUsername(String username) {
\x05\x05this.username = username;
\x05}
\x05public String getPassword() {
\x05\x05return password;
\x05}
\x05public void setPassword(String password) {
\x05\x05this.password = password;
\x05}
\x05public String execute(){
\x05\x05
\x05\x05return "success";\x05\x05
\x05\x05
\x05}
}

Could not find action or result There is no Action mapped for namespace / and action name Login.-用struts2做了个简单的登录界面 代码如下struts.xml\x05\x05 \x05\x05\x05\x05\x05 /true.jsp\x05\x05 \x05web.xml\x05\x05\x05struts2\x05\x05\x05
改掉.:
\x05

错误:Could not find action or result There is no Action mapped for LoginAction类中del方法中应该这样写:return "user_del",或者struts.xml中

换成这个试试public class Login extends ActionSupport