已采納回答 / 響窮彭蠡之濱
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter你的stuts2的jar包版本不對。要么是2.1之前的要么就是2.5的。struts2 2.5版本已經沒有這個org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter了。換回struts2 2.2的版本吧,最新的2.5版本...
2016-07-08
已采納回答 / daydaylw3
<...code...>你這里的request要初始化,你試試,我估計你是報了空指針異常的。private HttpServletRequest request=ServletActionContext.getRequest();
2016-06-01
已采納回答 / JackieZ
execute方法里面少了兩句ActionContext ctx = ActionContext.getContext(); Map application = ?ctx.getApplication();
2016-05-02
已采納回答 / 未來式
404是找不到文件,<action name=“aa”class="com.imooc.action.定義的類名稱"><return>/創建的jsp頁面名稱.jsp</return><ation>在瀏覽器里輸入http://localhost:8080/項目名稱/aa.action 你試試
2016-04-15
已采納回答 / 加勒比海帶0
你先使用model2的JSP+Servlet+JavaBean進行一點java web的開發,就能夠很好的理解MVC整個的開發模式了。之后你再使用struts2開發就會發現struts2是基于攔截器的MVC框架,其實就是把servlet換成了action進行的開發。
2016-04-08