Package org.g4studio.core.mvc.xstruts.config

Examples of org.g4studio.core.mvc.xstruts.config.ActionConfig


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

    ActionConfig actionConfig = actionCtx.getActionConfig();
    ActionForm actionForm = actionCtx.getActionForm();

    // Execute the Action for this request, caching returned ActionForward
    ForwardConfig forwardConfig = execute(actionCtx, action, actionConfig, actionForm);
View Full Code Here


   * @throws Exception
   *             on any error
   */
  public boolean execute(ActionContext actionCtx) throws Exception {
    // Acquire configuration objects that we need
    ActionConfig actionConfig = actionCtx.getActionConfig();

    // Cache an include uri if found
    String include = actionConfig.getInclude();

    if (include != null) {
      if (LOG.isDebugEnabled()) {
        LOG.debug("Including " + include);
      }
View Full Code Here

      return (false);
    }

    // Look up the class name for the desired Action
    ActionConfig actionConfig = actionCtx.getActionConfig();
    String type = actionConfig.getType();

    if (type == null) {
      LOG.trace("no type for " + actionConfig.getPath());

      return (false);
    }

    // Create (if necessary) and cache an Action instance
View Full Code Here

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

    // Reset the form bean property values
    ActionConfig actionConfig = actionCtx.getActionConfig();

    reset(actionCtx, actionConfig, actionForm);

    populate(actionCtx, actionConfig, actionForm);
View Full Code Here

  protected ActionForm findOrCreateForm(ActionContext context) throws IllegalAccessException, InstantiationException {
    String effectiveFormName;
    String effectiveScope;

    if (!(isEmpty(this.getActionPath()))) {
      ActionConfig actionConfig = context.getModuleConfig().findActionConfig(this.getActionPath());

      if (actionConfig == null) {
        throw new IllegalArgumentException("No ActionConfig found for path " + this.getActionPath());
      }

      effectiveFormName = actionConfig.getName();
      effectiveScope = actionConfig.getScope();
    } else {
      effectiveFormName = this.getFormName();
      effectiveScope = this.getScope();
    }
View Full Code Here

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

    // Acquire configuration objects that we need
    ActionConfig actionConfig = actionCtx.getActionConfig();
    ModuleConfig moduleConfig = actionConfig.getModuleConfig();

    // Cache an ForwardConfig back to our input page
    ForwardConfig forwardConfig;
    String input = actionConfig.getInput();

    if (moduleConfig.getControllerConfig().getInputForward()) {
      if (LOG.isTraceEnabled()) {
        LOG.trace("Finding ForwardConfig for '" + input + "'");
      }

      forwardConfig = actionConfig.findForwardConfig(input);

      if (forwardConfig == null) {
        forwardConfig = moduleConfig.findForwardConfig(input);
      }
    } else {
View Full Code Here

TOP

Related Classes of org.g4studio.core.mvc.xstruts.config.ActionConfig

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.