Could not find action or result There is no Action mapped fo
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/09/22 04:19:44
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}
}
用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}
}
改掉.:
\x05
\x05
警告:Could not find action or result There is no Action mapped
警告: Could not find action or result There is no Action mappe
could not find action or result
java 警告:Could not find action or result
There is no Action mapped for namespace /student and action
There is no Action mapped for namespace / and action name .-
There is no Action mapped for action name StringValidationAc
There is no Action mapped for namespace /study and action na
There is no Action mapped for namespace / and action name ad
There is no Action mapped for namespace / and action name lo
There is no result type defined for type 'input' mapped with
There is no result type defined for type 'json' mapped with