Package org.apache.struts.action

Examples of org.apache.struts.action.Action


  protected Action extendedProcessActionCreate(HttpServletRequest request, HttpServletResponse response,
      ActionMapping actionMapping) throws IOException
  {

    String className = actionMapping.getType();
    Action action = null;

    boolean isNew = false;

    synchronized (actions)
    {

      action = (Action) actions.get(className);

      if (action == null)
      {

        try
        {

          // load the action class
          Class clazz = Class.forName(className);

          // delegate action creation to ActionCreator
          action = actionCreator.createAction(clazz);

          action.setServlet(this.servlet);
          isNew = true;

        }
        catch (Exception e)
        {
View Full Code Here


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

    Action action = extendedProcessActionCreate(request, response, actionMapping);
    if (action != null)
      return action;

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

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

    Action action = extendedProcessActionCreate(request, response, actionMapping);
    if (action != null)
      return action;

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

  }

  public Action createAction(Class actionClass) throws Exception
  {

    Action strutsAction = null;

    // Create and return a new Action instance
    if (log.isTraceEnabled())
    {
      log.trace("Creating new Action instance");
View Full Code Here

    checkIsAssignable(actionBeanClass, actionInterfaceType, controllerClass);

    Object controllerActionInstance = instantiateControllerAction(controllerClass, actionBeanClass);

    // cast to Struts action
    Action strutsAction = (Action) controllerActionInstance;

    // cast the same reference to ControllerAction, so that its factory can be set
    ControllerAction controllerAction = (ControllerAction) controllerActionInstance;

    if (controllerAction instanceof BeanSourceAware)
View Full Code Here

  protected Action extendedProcessActionCreate(HttpServletRequest request, HttpServletResponse response,
      ActionMapping actionMapping) throws IOException
  {

    String className = actionMapping.getType();
    Action action = null;

    boolean isNew = false;

    synchronized (actions)
    {

      action = (Action) actions.get(className);

      if (action == null)
      {

        try
        {

          // load the action class
          Class clazz = Class.forName(className);

          // delegate action creation to ActionCreator
          action = actionCreator.createAction(clazz);

          action.setServlet(this.servlet);
          isNew = true;

        }
        catch (Exception e)
        {
View Full Code Here

        // Now try to create actions and run the provided action target on each.
        // Any forwards returned are ignored
        for (SubActionWrapper wrapper : subActions) {
            try {
                    // We have an action config, so get the action instance
                    Action action = processActionCreate(request, response, wrapper.getMapping());
                    // Identify the method object to be dispatched to
                    if (dispatchForm.isSubFormEmpty() || wrapper.getForm().equals(subform) || refreshAll) {
                        Method method = getMethod(action, name);
                        Object args[] = { wrapper.getMapping(), wrapper.getForm(), request, response };
                        // Invoke the method. We don't care about the forward
View Full Code Here

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

    Action instance = super.processActionCreate(request, response, mapping);
    if (instance instanceof Support) {
      ((Support) instance).setDaoFactory(daoFactory);
    }
    return (instance);
  }
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

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.