Package com.opensymphony.xwork2.ognl

Examples of com.opensymphony.xwork2.ognl.OgnlValueStackTest$Country


   
    protected void setActionMessage(String message)
    {   // put Message on session
        if (message.startsWith("!"))
            message = getText(message.substring(1));
        ActionContext context = ActionContext.getContext();
        context.getSession().put(LAST_ACTION_MESSAGE_ATTRIBUTE, message);
    }
View Full Code Here


   
    // ------- Request Param accessors -------
   
    public final Map<String,Object> getRequestParameters()
    {
        ActionContext context = ActionContext.getContext();
        return (context!=null) ? context.getParameters() : null;
    }
View Full Code Here

    public String intercept(ActionInvocation invocation) throws Exception {
       
        log.debug("Entering UIActionPrepareInterceptor");
       
        final Object action = invocation.getAction();
        final ActionContext context = invocation.getInvocationContext();
       
        // is this one of our own UIAction classes?
        if (action instanceof UIActionPreparable) {
           
            log.debug("action is UIActionPreparable, calling myPrepare() method");
View Full Code Here

    public String intercept(ActionInvocation invocation) throws Exception {
       
        log.debug("Entering UIActionInterceptor");
       
        final Object action = invocation.getAction();
        final ActionContext context = invocation.getInvocationContext();
       
        HttpServletRequest request = (HttpServletRequest) context.get(HTTP_REQUEST);
       
        // is this one of our own UIAction classes?
        if (action instanceof UIAction) {
           
            log.debug("action is a UIAction, setting relevant attributes");
View Full Code Here

        Configuration config = configurationManager.getConfiguration();
        Container container = config.getContainer();

        ValueStack stack = container.getInstance(ValueStackFactory.class).createValueStack();
        stack.getContext().put(ActionContext.CONTAINER, container);
        ActionContext.setContext(new ActionContext(stack.getContext()));

        ActionContext.getContext().setSession(new HashMap<String, Object>());

        // change the port on the mailSender so it doesn't conflict with an
        // existing SMTP server on localhost
View Full Code Here

  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

import com.opensymphony.xwork2.ActionContext;
public class UserLogoutAction {
  public String execute(){
    try {
      // 세션에 저장된 유저정보를 삭제한다
      ActionContext context = ActionContext.getContext();
      Map<String, UserVO> session = context.getSession();     
      session.remove("user");
      context.setSession(session);     
    } catch (Exception e) {
      System.out.println("UserLogoutAction.execute():"+e.toString());
    }
    return "success";
  }
View Full Code Here

  }
 
  public String getUserInfo(){
    String result = "";
    try {     
      ActionContext context = ActionContext.getContext();
      vo = (UserVO) context.getSession().get("user");
      vo = userDAO.getUserInfo(vo.getSabun());
      jlist = orgDAO.getJobList();
      dlist = orgDAO.getDeptList();
      result = "success";
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.opensymphony.xwork2.ognl.OgnlValueStackTest$Country

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.