Examples of ActionConfig


Examples of org.apache.struts.config.ActionConfig

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

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

        ForwardConfig forwardConfig = null;
        String forward = actionConfig.getForward();

        if (forward != null) {
            forwardConfig = forward(actionCtx, moduleConfig, forward);

            if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.struts.config.ActionConfig

            return (true);
        }

        // Look up the local or global exception handler configuration
        ExceptionConfig exceptionConfig = null;
        ActionConfig actionConfig = actionCtx.getActionConfig();
        ModuleConfig moduleConfig = actionCtx.getModuleConfig();

        if (actionConfig != null) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("See if actionConfig " + actionConfig
                    + " has an exceptionConfig for "
                    + exception.getClass().getName());
            }

            exceptionConfig = actionConfig.findException(exception.getClass());
        } else if (moduleConfig != null) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("No action yet, see if moduleConfig " + moduleConfig
                    + " has an exceptionConfig "
                    + exception.getClass().getName());
View Full Code Here

Examples of org.apache.struts.config.ActionConfig

        // Identify the matching path for this request
        String path = getPath(actionCtx);

        // Cache the corresponding ActonConfig instance
        ModuleConfig moduleConfig = actionCtx.getModuleConfig();
        ActionConfig actionConfig = moduleConfig.findActionConfig(path);

        if (actionConfig == null) {
            // NOTE Shouldn't this be the responsibility of ModuleConfig?
            // Locate the mapping for unknown paths (if any)
            ActionConfig[] configs = moduleConfig.findActionConfigs();
View Full Code Here

Examples of org.apache.struts.config.ActionConfig

        // Look up the application module configuration information we need
        ModuleConfig moduleConfig = lookupModuleConfig(context);

        // Look up the ActionConfig we are processing
        String action = getAction();
        ActionConfig actionConfig = moduleConfig.findActionConfig(action);
        if (actionConfig == null) {
            throw new IllegalArgumentException("Cannot find action '" +
                                               action + "' configuration");
        }

        // Does this ActionConfig specify a form bean?
        String name = actionConfig.getName();
        if (name == null) {
            return;
        }

        // Look up the FormBeanConfig we are processing
        FormBeanConfig fbConfig = moduleConfig.findFormBeanConfig(name);
        if (fbConfig == null) {
            throw new IllegalArgumentException("Cannot find form bean '" +
                                               name + "' configuration");
        }

        // Does a usable form bean attribute already exist?
        String attribute = actionConfig.getAttribute();
        String scope = actionConfig.getScope();
        ActionForm instance = null;
        if ("request".equals(scope)) {
            instance = (ActionForm)
                context.getExternalContext().getRequestMap().get(attribute);
        } else if ("session".equals(scope)) {
View Full Code Here

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

   *
   * @param path
   *            Path of the action configuration to return
   */
  public ActionConfig findActionConfig(String path) {
    ActionConfig config = (ActionConfig) actionConfigs.get(path);

    // If a direct match cannot be found, try to match action configs
    // containing wildcard patterns only if a matcher exists.
    if ((config == null) && (matcher != null)) {
      config = matcher.match(path);
View Full Code Here

Examples of org.openhab.binding.homematic.internal.config.binding.ActionConfig

            "Programs can only be attached to items which accepts OnOffType commands, ignoring item "
                + item.getName());
      }
      return new ProgramConfig(helper.program, bindingAction);
    } else if (bindingAction != null) {
      return new ActionConfig(bindingAction);
    } else {
      throw new BindingConfigParseException("Invalid binding: " + bindingConfig);
    }
  }
View Full Code Here

Examples of org.springframework.roo.addon.tailor.actions.ActionConfig

                // Determine the action type
                if (StringUtils.isBlank(elAction.getAttribute("type"))) {
                    logTailorXMLInvalid("found <action> without type attribute");
                    return null;
                }
                final ActionConfig newAction = new ActionConfig(
                        elAction.getAttribute("type"));
                final NamedNodeMap attributes = elAction.getAttributes();
                for (int i = 0; i < attributes.getLength(); i++) {
                    final Node item = attributes.item(i);
                    final String attributeKey = item.getNodeName();
                    if (!"type".equals(attributeKey)) {
                        newAction.setAttribute(attributeKey,
                                item.getNodeValue());
                    }
                }
                newCmdConfig.addAction(newAction);
            }
View Full Code Here

Examples of org.universa.tcc.gemda.web.config.ActionConfig

    return facade;
  }
 
  @SuppressWarnings("unchecked")
  private T getEntidade() {
    ActionConfig actionConfig = this.getClass().getAnnotation(ActionConfig.class);
    if (actionConfig == null || "".equals(actionConfig.entity())) {
      throw new UnsupportedOperationException("N�o foi encontrada a anota��o @ActionConfig() na classe [" + this.getClass().getCanonicalName() + "] ou n�o foi configurada corretamente (Atributo 'entity')");
    } else {
      try {
        PropertyDescriptor prop = BeanUtils.getPropertyDescriptor(this.getClass(), actionConfig.entity());
        return (T) prop.getReadMethod().invoke(this);
      } catch (Exception e) {
        getLogger().error("Erro ao invocar o m�todo #getEntidade()", e);
        return 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.