第2讲 基于开源框架的企业级信息系统开发技术.pptVIP

  • 8
  • 0
  • 约6.4万字
  • 约 197页
  • 2017-12-05 发布于山西
  • 举报

第2讲 基于开源框架的企业级信息系统开发技术.ppt

6.7.4 “登录”功能实现 下面是拦截器代码: package org.tool; import java.util.Map; import org.model.Dlb; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionInvocation; import erceptor.AbstractInterceptor; public class MyFilter extends AbstractInterceptor{ public String intercept(ActionInvocation arg0) throws Exception { Map session=arg0.getInvocationContext().getSession(); Dlb user=(Dlb) session.get(user); if(user==null){ return Action.LOGIN; } return arg0.invoke(); } } 6.7.4 “登录”功能实现 下面是实现left.jsp中超链接跳转的Action在Struts的核心配置文件struts.xml中的配置。 …… struts package name=defaul

文档评论(0)

1亿VIP精品文档

相关文档