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 · 90 阅读 · 0 评论 -
自定义拦截器的三个方法
一:继承接口 intercept三个方法:1.public void destroy(); //释放资源 2.public void init(); //初始化 3.public String intercept(ActionInvocation arg0); //核心方法 二:继承抽象类 abstractIntercept方法:pu...2009-12-08 21:51:36 · 1248 阅读 · 0 评论