最赞回答 / qq_藍色_飄羽_0
如果你是最新2.5版本的原来的xwork单独的jar已经合并到了struts-core的jar包中了 在struts-2.5-BETA1中,过滤器所在的包又有了变化,没有ng包了,如下所示: <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteF...
2016-08-05
已采纳回答 / 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