Examples of ActionContext

  • webwork.action.ActionContext

  • Examples of org.strecks.context.ActionContext

      public void testExecute() throws Exception
      {

        HttpServletRequest request = createMock(HttpServletRequest.class);
        ActionServlet servlet = createMock(ActionServlet.class);
        ActionContext actionContext = new TestContextImpl(request);

        replay(request);
        replay(servlet);

        SimpleControllerAction action = new SimpleControllerAction();
    View Full Code Here

    Examples of org.strecks.context.ActionContext

        ServletActionContext sc = (ServletActionContext) context;
        HttpServletRequest request = sc.getRequest();
        HttpServletResponse response = sc.getResponse();
        ServletContext servletContext = sc.getContext();
       
        ActionContext actionContext = actionContextFactory.createActionContext(request, response, servletContext,
            actionForm, (ActionMapping) actionConfig);

        ActionForward forward = null;

        if (action instanceof ControllerAction)
    View Full Code Here

    Examples of org.strecks.context.ActionContext

      @Override
      protected ActionForward extendedProcessActionPerform(HttpServletRequest request, HttpServletResponse response,
          Action action, ActionForm form, ActionMapping mapping) throws IOException, ServletException
      {

        ActionContext actionContext = actionContextFactory.createActionContext(request, response, servletContext, form,
            mapping);

        ActionForward forward = null;

        try
    View Full Code Here

    Examples of org.strecks.context.ActionContext

      @Override
      protected ActionForward extendedProcessActionPerform(HttpServletRequest request, HttpServletResponse response,
          Action action, ActionForm form, ActionMapping mapping) throws IOException, ServletException
      {

        ActionContext actionContext = actionContextFactory.createActionContext(request, response, servletContext, form,
            mapping);

        ActionForward forward = null;

        try
    View Full Code Here

    Examples of org.structr.schema.action.ActionContext

          final List source = (List)listSource;

          for (Object obj : source) {

            eachExpression.evaluate(securityContext, new ActionContext(ctx, entity, obj), entity);
          }
        }

        return null;
      }
    View Full Code Here

    Examples of org.zkoss.zest.ActionContext

        if (s == null || s.length() == 0)
          s = request.getServletPath();
        if (pathIgnored(s, _config.getExtensions()))
          return false;

        final ActionContext ac = new ActionContextImpl(request, response,
          _config.getVariableResolver(), _config.getFunctionMapper());
        final ActionDefinition[] defs = _config.getActionDefinitions();
        for (int j = 0; j < defs.length; ++j) {
          final ActionDefinition def = defs[j];
          Object action = null;
          try {
            action = def.getAction(ac);
            if (action != null) {
              request.setAttribute("action", action);
              if (!parameterIgnored(action))
                coerceParameters(ac, action);
              final String result = def.execute(ac, action);
              request.setAttribute("result", result);
              final ViewInfo viewInfo = def.getViewInfo(ac, result);
              if (viewInfo == null)
                throw new ZestException("No information specified for "+action+" under result is "+result+", when handling "+ac.getRequestPath());
              switch (viewInfo.getViewType()) {
              case REDIRECT:
                Https.sendRedirect(_ctx, request, response, viewInfo.getURI(), null, 0);
                break;
              case ERROR:
                final String msg = viewInfo.getErrorMessage();
                if (msg != null)
                  response.sendError(viewInfo.getErrorCode(), msg);
                else
                  response.sendError(viewInfo.getErrorCode());
              case DONE:
                break;
              default:
                Https.forward(_ctx, request, response, viewInfo.getURI());
                break;
              }
              return true;
            }
          } catch (Throwable ex) {
            try {
              _config.getErrorHandler().onError(ac, action, ex);
            } catch (ServletException t) {
              throw (ServletException)t;
            } catch (IOException t) {
              throw (IOException)t;
            } catch (Throwable t) {
              throw ZestException.Aide.wrap(t, "Failed to handle "+ac.getRequestPath());
            }
          }
        }
        return false;
      }
    View Full Code Here

    Examples of webwork.action.ActionContext

         
           //logger.info("servletPath:" + servletPath);
         
           String actionName = getActionName(servletPath);
           GenericDispatcher gd = new GenericDispatcher(actionName, false);
           ActionContext context = gd.prepareContext();
          
           //logger.info("actionName:" + actionName);

           InfoGluePrincipal principal = (InfoGluePrincipal)aRequest.getSession().getAttribute("infogluePrincipal");
           if(principal != null)
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.