struts2
feer110
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
struts2调用servlet API两个方法
第一个方法: ServletActionContext.getRequest.getSession.setAttribute("a","内容"); 在页面接值: <% String a = (String )Request.getAttribute("a"); %> 第二个方法: ActionContext.getContext.getSession.put(...原创 2009-12-08 21:30:22 · 150 阅读 · 0 评论 -
自定义拦截器的三个方法
一: 继承接口 intercept 三个方法: 1.public void destroy(); //释放资源 2.public void init(); //初始化 3.public String intercept(ActionInvocation arg0); //核心方法 二: 继承抽象类 abstractIntercept 方法:pu...2009-12-08 21:51:36 · 1352 阅读 · 0 评论
分享