Package org.apache.struts.action

Examples of org.apache.struts.action.Action


  @Override
  protected Action processActionCreate(
      HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
      throws IOException {

    Action action = getDelegateAction(mapping);
    if (action != null) {
      return action;
    }
    return super.processActionCreate(request, response, mapping);
  }
View Full Code Here


   */
  protected Action processActionCreate(
      HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
      throws IOException {

    Action action = super.processActionCreate(request, response, mapping);
    getWebApplicationContext().getAutowireCapableBeanFactory().autowireBeanProperties(
        action, getAutowireMode(), getDependencyCheck());
    return action;
  }
View Full Code Here

   */
  protected Action processActionCreate(
      HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
      throws IOException {

    Action action = super.processActionCreate(request, response, mapping);
    getWebApplicationContext().getAutowireCapableBeanFactory().autowireBeanProperties(
        action, getAutowireMode(), getDependencyCheck());
    return action;
  }
View Full Code Here

   */
  public ActionForward execute(
      ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
      throws Exception {

    Action delegateAction = getDelegateAction(mapping);
    return delegateAction.execute(mapping, form, request, response);
  }
View Full Code Here

   */
  protected Action processActionCreate(
      HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
      throws IOException {

    Action action = getDelegateAction(mapping);
    if (action != null) {
      return action;
    }
    return super.processActionCreate(request, response, mapping);
  }
View Full Code Here

   */
  protected Action processActionCreate(
      HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
      throws IOException {

    Action action = getDelegateAction(mapping);
    if (action != null) {
      return action;
    }
    return super.processActionCreate(request, response, mapping);
  }
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

        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

        MutablePicoContainer actionsContainer = actionsContainerFactory.getActionsContainer(request);
        Object actionKey = mapping.getPath();
        Class actionType = actionsContainerFactory.getActionClass(mapping.getType());

        Action action = (Action) actionsContainer.getComponentInstance(actionKey);
        if (action == null) {
            actionsContainer.registerComponentImplementation(actionKey, actionType);
            action = (Action) actionsContainer.getComponentInstance(actionKey);
        }

        action.setServlet(servlet);
        return action;
    }
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.