Package com.pccw.service.exception

Examples of com.pccw.service.exception.InteractionException


    HttpServletRequest request=(HttpServletRequest) ServiceContext.getContextRequest();
    HttpSession session=request.getSession();
    if(session.getAttribute("user")==null){
      System.out.println("没有登录,拦截");
      session.setAttribute("user", "guest");
      InteractionException i=new InteractionException("没有登录",99999);
      throw i;
    }else{
      return invocation.proceed();
    }
  }
View Full Code Here

TOP

Related Classes of com.pccw.service.exception.InteractionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.