Package com.opensymphony.xwork2

Examples of com.opensymphony.xwork2.LocaleProvider


  private UserVO vo;
 
  public String execute(){
    String result = "";
    int sabun = 0;   
    ActionContext context = ActionContext.getContext();
    Map<String, UserVO> userMap = context.getSession();
    vo = userMap.get("user");
    try {
      sabun = vo.getSabun();
    } catch (NullPointerException e) {
      sabun = 0;
View Full Code Here


    }   
    return result;   
  }
 
  public int getSessionSabun(){
    ActionContext context = ActionContext.getContext();
    Map<String, UserVO> userMap = context.getSession();
    UserVO vo = userMap.get("user");
    int sabun = vo.getSabun();
    return sabun;
  }
View Full Code Here

      // 직급 테이블로부터 얻어온 보안등급 초기값 설정     
      uVO.setSlevel(orgDAO.getSlevel(uVO.getJobno()));
      // 실제 업데이트 수행
      userDAO.updateUser(uVO);
      // 수정된 vo객체를 세션에 저장
      ActionContext context = ActionContext.getContext();
      Map<String, UserVO> session = (Map<String, UserVO>)context.getSession();
      uVO = userDAO.getUserInfo(uVO.getSabun());
      session.put("user", uVO);       
      context.setSession(session);     
      result = "success";
    } catch (Exception e) {
      System.out.println("UserInputAction.updateUser():"+e.toString());     
      result = "error";
    }
View Full Code Here

   
    // ------- Action Bean storage -------

    private ActionProxy getActionProxy(ActionContext context)
    {
        ActionInvocation invocation = context.getActionInvocation();
        if (invocation==null)
        {
            log.error("Action Invocation cannot be obtained. Calling from action constructor?");
            return null;
        }
        ActionProxy proxy = invocation.getProxy();
        if (proxy==null)
        {
            log.error("ActionProxy cannot be obtained. Calling from action constructor?");
            return null;
        }
View Full Code Here

   
    // ------- Action Bean storage -------

    private ActionProxy getActionProxy(ActionContext context)
    {
        ActionInvocation invocation = context.getActionInvocation();
        if (invocation==null)
        {
            log.error("Action Invocation cannot be obtained. Calling from action constructor?");
            return null;
        }
        ActionProxy proxy = invocation.getProxy();
        if (proxy==null)
        {
            log.error("ActionProxy cannot be obtained. Calling from action constructor?");
            return null;
        }
View Full Code Here

   
    // ------- ActionObject accessors -------

    protected String getActionObjectName(ActionContext context, String name)
    {
        ActionProxy proxy = getActionProxy(context);
        if (proxy==null)
            return null;
        return proxy.getActionName() + "." + name;
    }
View Full Code Here

        if (invocation==null)
        {
            log.error("Action Invocation cannot be obtained. Calling from action constructor?");
            return null;
        }
        ActionProxy proxy = invocation.getProxy();
        if (proxy==null)
        {
            log.error("ActionProxy cannot be obtained. Calling from action constructor?");
            return null;
        }
View Full Code Here

        return proxy;
    }
   
    protected String getActionBeanName(ActionContext context, Class objClass, String ownerProperty)
    {
        ActionProxy proxy = getActionProxy(context);
        if (proxy==null)
            return null;
        if (ownerProperty==null)
            return proxy.getActionName()+ "." + objClass.getName();
        // Default
        return proxy.getActionName()+ "." + ownerProperty + "." + objClass.getName();
    }
View Full Code Here

   
    // ------- ActionObject accessors -------

    protected String getActionObjectName(ActionContext context, String name)
    {
        ActionProxy proxy = getActionProxy(context);
        if (proxy==null)
            return null;
        return proxy.getActionName() + "." + name;
    }
View Full Code Here

        if (invocation==null)
        {
            log.error("Action Invocation cannot be obtained. Calling from action constructor?");
            return null;
        }
        ActionProxy proxy = invocation.getProxy();
        if (proxy==null)
        {
            log.error("ActionProxy cannot be obtained. Calling from action constructor?");
            return null;
        }
View Full Code Here

TOP

Related Classes of com.opensymphony.xwork2.LocaleProvider

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.