随笔分类 -  struts2

摘要:struts2 中 Actionsupport 的作用(cite)Action 跟 Actionsupport 的区别 当我们在写action的时候,可以实现Action接口,也可以继承Actionsupport这个类.到底这两个有什么区别呢?Action接口有:public static fina... 阅读全文
posted @ 2015-11-24 02:10 Akke 阅读(242) 评论(0) 推荐(0)
摘要:1 package test; 2 3 import java.util.ArrayList; 4 import java.util.HashMap; 5 6 import org.junit.Test; 7 8 import ognl.Ognl; 9 import ogn... 阅读全文
posted @ 2015-11-22 04:49 Akke 阅读(237) 评论(0) 推荐(0)
摘要:1.注意jsp页面加入标签 如果想使用ActionContext,在jsp页面对应使用进行传参 引入EL表达式 阅读全文
posted @ 2015-11-21 13:03 Akke 阅读(126) 评论(0) 推荐(0)
摘要:1 2 5 6 7 8 10 11 12 13 14 15 16 17 19 input.jsp20 21 23 ... 阅读全文
posted @ 2015-11-20 14:58 Akke 阅读(816) 评论(0) 推荐(0)
摘要:1、在pom.xml导入相应的jar包:struts2-core2、设置web.xml添加struts2的过滤器:1 2 struts23 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecut... 阅读全文
posted @ 2015-11-20 14:51 Akke 阅读(145) 评论(0) 推荐(0)