已采納回答 / 嘛也不會
你看你的action標簽里 的class 屬性 是不是這么寫的 ?"com.imooc.{3}.{1}Action" ?對吧, ?然后 你的 HelloWorld_add_action ? 就是匹配 *_*_* 這個正則對吧, ?所以 *_*_* = {1}_{2}_{3} ?所以 {1} =HelloWorld, ?{2}=add ,{3}=action ? ?最后 你的class 被翻譯成 com.imooc.action.HelloWorldAction?
2016-09-07
已采納回答 / 慕粉7018774
?public?String?add(){??return?SUCCESS;?}?return success 改成 “add”不然執行的是<result>/result.jsp</result>
2016-09-03
最新回答 / i丶塵影
錯誤原因發布時也要配置編譯環境windows-preferences-java-build path-user libraries 添加Struts2的相關jar包即可詳見http://www.cnblogs.com/fingerboy/p/5261105.html
2016-08-22
已采納回答 / 慕粉zq
這是你的:org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExcuteFilter這是正確的:org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter要仔細呀!同學
2016-08-11
已采納回答 / qq_OnwardHeng_0
你架包導了沒,看到consle那的Problem嗎,點進去看看你這個項目有什么錯,一般都是你前期工作沒做完全,而且你貼的東西太少,看不出來具體的錯誤
2016-07-22
已采納回答 / 二度
<action?name="loginAction"?method="login"?class="loginDemo.loginAction">????????????<result name="input">/success.jsp?</result>????????</action>
2016-07-20
已采納回答 / qq_黑色契約_0
Actionpublic String add() { request.setAttribute("path", "update"); return "addAction"; }helloworld-xml <!--2感嘆號方式要配置的文件 頁面調用http://localhost:8080/HelloWorld/helloworld!add.action ?不推薦--> <action name="helloworld" class="com.imooc.action.Hello...
2016-07-17
已采納回答 / 逗bi醬
你上邊代碼的struts標簽根本都沒有閉合。。。<package?name="default"?namespace="/"?extends="struts-default"><default-action-ref?name="index"></default-action-ref><action?name="index">????<result>/error.jsp</result></action><struts&...
2016-07-13