Package org.apache.struts.action

Examples of org.apache.struts.action.Action


        throws IOException, ServletException {

        ActionMapping mapping =
            processMapping(path,request);

        Action action =
            processActionCreate(mapping,request);

        ActionForward forward =
            processActionPerform(
                action,mapping,form,request,response);
View Full Code Here


            return (false);
        }

        // Create (if necessary) and cache an Action instance
        Action action = getAction(actionCtx, type, actionConfig);

        if (LOG.isTraceEnabled()) {
            LOG.trace("setting action to " + action);
        }
View Full Code Here

        throws IOException {

        if (log.isTraceEnabled()) {
            log.trace("Performing standard action create");
        }
        Action result = super.processActionCreate(request, response, mapping);
        if (log.isDebugEnabled()) {
            log.debug("Standard action create returned " +
                      result.getClass().getName() + " instance");
        }
        return (result);

    }
View Full Code Here

        if (type == null) {
            return (false);
        }

        // Create (if necessary) and cache an Action instance
        Action action = null;
        Map actions = getActions(context, actionConfig.getModuleConfig());
        synchronized (actions) {
            action = (Action) actions.get(type);
            if (action == null) {
                log.info("Initialize action of type: " + type + " for actionConfig " + actionConfig);
                action = (Action) ClassUtils.getApplicationInstance(type);
                ActionServlet actionServlet = (ActionServlet)
                    context.get(getActionServletKey());
                action.setServlet(actionServlet);
                actions.put(type, action);
            }
        }
        context.put(getActionKey(), action);
View Full Code Here

        if ((valid == null) || !valid.booleanValue()) {
            return (false);
        }

        // Acquire the resources we will need to send to the Action
        Action action = (Action)
            context.get(getActionKey());
        if (action == null) {
            return (false);
        }
        ActionConfig actionConfig = (ActionConfig)
View Full Code Here

        throws IOException {

        if (log.isTraceEnabled()) {
            log.trace("Performing standard action create");
        }
        Action result = super.processActionCreate(request, response, mapping);
        if (log.isDebugEnabled()) {
            log.debug("Standard action create returned " +
                      result.getClass().getName() + " instance");
        }
        return (result);

    }
View Full Code Here

            assert fc != null : "no FlowController for request " + request.getRequestURI();
            assert fc.getClass().getName().equals( actionMapping.getParameter() )
                    : "current page flow  type " + fc.getClass().getName() + " does not match type specified in "
                      + FLOW_CONTROLLER_ACTION_CLASSNAME + ": " + actionMapping.getParameter();

            Action action = new FlowControllerAction( fc );
            action.setServlet( servlet );
            return action;
        }

        return super.processActionCreate( request, response, actionMapping );
    }
View Full Code Here

      throws IOException {

    String className = mapping.getType();
    boolean firstInstance = !actions.containsKey(className);

    Action action = super.processActionCreate(request, response, mapping);

    if ((action instanceof ActionInstance) && (firstInstance)) {
      try {
        ((ActionInstance) action).init(request, response, mapping);
      } catch (Exception e) {
View Full Code Here

    public void destroy()
    {
        synchronized(this.actions)
        {
            for (Iterator iter = super.actions.values().iterator(); iter.hasNext();) {
        Action action = (Action) iter.next();
            if (action instanceof ActionInstance
               ((ActionInstance) action).destroy();
      }
        }
       
View Full Code Here

            assert fc != null : "no FlowController for request " + request.getRequestURI();
            assert fc.getClass().getName().equals( actionMapping.getParameter() )
                    : "current page flow  type " + fc.getClass().getName() + " does not match type specified in "
                      + FLOW_CONTROLLER_ACTION_CLASSNAME + ": " + actionMapping.getParameter();

            Action action = new FlowControllerAction( fc );
            action.setServlet( servlet );
            return action;
        }

        return super.processActionCreate( request, response, actionMapping );
    }
View Full Code Here

TOP

Related Classes of org.apache.struts.action.Action

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.