
struts2
孙曹永
程序员旅游游戏看书
展开
-
配置struts2拦截器
配置struts2拦截器 1. 编写拦截器的类 如:com.wfhms.system.filter.LoginInterceptor //继承AbstractInterceptor类 publicclass LoginInterceptorextends AbstractInterceptor { //重写intercept方法原创 2013-03-08 10:56:00 · 653 阅读 · 0 评论 -
action获取session的方式
1.解耦合的方式 public String execute() { if("jbit".equals(username) && "bdqn".equals(password)) { Map session = null; session = ActionContext.getContext().getSession(); if(session.c原创 2013-06-18 14:04:26 · 16114 阅读 · 0 评论