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

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


   * The controller configuration object for this module.
   * </p>
   */
  public ControllerConfig getControllerConfig() {
    if (this.controllerConfig == null) {
      this.controllerConfig = new ControllerConfig();
    }

    return (this.controllerConfig);
  }
View Full Code Here


    LOG.info("Initializing composable request processor for module prefix '" + moduleConfig.getPrefix() + "'");
    super.init(servlet, moduleConfig);

    initCatalogFactory(servlet, moduleConfig);

    ControllerConfig controllerConfig = moduleConfig.getControllerConfig();

    String catalogName = controllerConfig.getCatalog();

    catalog = this.catalogFactory.getCatalog(catalogName);

    if (catalog == null) {
      throw new ServletException("Cannot find catalog '" + catalogName + "'");
    }

    String commandName = controllerConfig.getCommand();

    command = catalog.getCommand(commandName);

    if (command == null) {
      throw new ServletException("Cannot find command '" + commandName + "'");
    }

    this.setActionContextClassName(controllerConfig.getProperty(ACTION_CONTEXT_CLASS));
  }
View Full Code Here

TOP

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

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.