struts2 The requested resource (/struts2/test/helloworld) is not available.struts.xml/WEB-INF/page/hello.jsp web.xml struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /*

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/12 18:50:20
struts2 The requested resource (/struts2/test/helloworld) is not available.struts.xml/WEB-INF/page/hello.jsp  web.xml        struts2        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter                struts2        /*
xTO@csmއwA f] tpJHx JbG$QQ #Fmww$i63l(&GhC J\A>t :2M{vMmX6p&TL1OT4#?;qmIށpv",!p5)v t7#f`q9 Pi&0Nȁ.R=&+Z]9Yϳx~ua{qvΥ~yVΆR;kť%LfVK#taND{+#]n-"˜Z3ö9:0^< BL8xdSLC 1A2"$ YdB# L1Pq\  -wpEǯkjkje'F}c;LŞRx#-۳3LWvY8ة>zRiث6>3_LE&}*e>A2Qeh2n[ȈKc$vj2#0nYiO/[AvmieILC;fb\Ԙ_Ps`WEuB+<9ptؘSyjA_0 F$O@"QJ*JØd:I5(%4Y+$J M<=Ši)s(t&.sI4JLbJ>!Jc8<#E)i 

struts2 The requested resource (/struts2/test/helloworld) is not available.struts.xml/WEB-INF/page/hello.jsp web.xml struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /*
struts2 The requested resource (/struts2/test/helloworld) is not available.
struts.xml





/WEB-INF/page/hello.jsp




web.xml




struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


struts2
/*



index.jsp


hello.jsp







My JSP 'hello.jsp' starting page








${message}


HelloWorldAction.java
package cn.itcast.action;
public class HelloWorldAction {
private String message;
public String getMessage() {
return message;
}
public String execute(){

message="这是我的第一个struts2应用";
return "success";
}
}

struts2 The requested resource (/struts2/test/helloworld) is not available.struts.xml/WEB-INF/page/hello.jsp web.xml struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /*
看看你的page放哪了? 路径应该是 : WebRoot/WEB-INF/page/hello.jsp 
项目的属性看看Web Context-root是什么,看看你的访问路径 /struts2/test/helloworld 是否正确,
注意与 Web Context-root 一致.