Package com.google.code.rees.scope.struts2.test

Examples of com.google.code.rees.scope.struts2.test.ScopeTestUtil


    public void prepare() {
      ActionContext actionContext = ActionContext.getContext();
      HttpServletRequest request = (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);
      ConversationContextManager contextManager = this.conversationContextManagerProvider.getManager(request);
        try {
      this.conversationProcessor.processConversations(new StrutsConversationAdapter(actionContext.getActionInvocation(), contextManager));
      Map<String, Map<String, String>> stackItem = new HashMap<String, Map<String, String>>();
          stackItem.put(StrutsScopeConstants.CONVERSATION_ID_MAP_STACK_KEY, ConversationAdapter.getAdapter().getViewContext());
          actionContext.getValueStack().push(stackItem);
        } catch (ConversationException e) {
      LOG.error("Programmatic Conversation error in Prepare method", e);
View Full Code Here


    public void prepare() {
      ActionContext actionContext = ActionContext.getContext();
      HttpServletRequest request = (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);
      ConversationContextManager contextManager = this.conversationContextManagerFactory.getManager(request);
        try {
      this.conversationManager.processConversations(new StrutsConversationAdapter(actionContext.getActionInvocation(), contextManager));
      Map<String, Map<String, String>> stackItem = new HashMap<String, Map<String, String>>();
          stackItem.put(StrutsScopeConstants.CONVERSATION_ID_MAP_STACK_KEY, ConversationAdapter.getAdapter().getViewContext());
          actionContext.getValueStack().push(stackItem);
        } catch (ConversationException e) {
      LOG.error("Programmatic Conversation error in Prepare method", e);
View Full Code Here

    public void prepare() {
      ActionContext actionContext = ActionContext.getContext();
      HttpServletRequest request = (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);
      ConversationContextManager contextManager = this.conversationContextManagerFactory.getManager(request);
        try {
      this.conversationManager.processConversations(new StrutsConversationAdapter(actionContext.getActionInvocation(), contextManager));
      Map<String, Map<String, String>> stackItem = new HashMap<String, Map<String, String>>();
          stackItem.put(StrutsScopeConstants.CONVERSATION_ID_MAP_STACK_KEY, ConversationAdapter.getAdapter().getViewContext());
          actionContext.getValueStack().push(stackItem);
        } catch (ConversationException e) {
      LOG.error("Programmatic Conversation error in Prepare method", e);
View Full Code Here

    public void prepare() {
      ActionContext actionContext = ActionContext.getContext();
      HttpServletRequest request = (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);
      ConversationContextManager contextManager = scopeContainer.getComponent(HttpConversationContextManagerProvider.class).getManager(request);
        try {
      scopeContainer.getComponent(ConversationProcessor.class).processConversations(new StrutsConversationAdapter(actionContext.getActionInvocation(), contextManager));
      Map<String, Map<String, String>> stackItem = new HashMap<String, Map<String, String>>();
          stackItem.put(StrutsScopeConstants.CONVERSATION_ID_MAP_STACK_KEY, ConversationAdapter.getAdapter().getViewContext());
          actionContext.getValueStack().push(stackItem);
        } catch (ConversationException e) {
      LOG.error("Programmatic Conversation error in Prepare method", e);
View Full Code Here

TOP

Related Classes of com.google.code.rees.scope.struts2.test.ScopeTestUtil

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.