Package org.g4studio.core.mvc.xstruts.chain.contexts

Examples of org.g4studio.core.mvc.xstruts.chain.contexts.ActionContextBase


   * @throws IllegalStateException
   *             If ActionContext is not a subclass of ActionBase
   */
  protected ActionForm findOrCreateForm(ActionContext ctx, String effectiveFormName, String effectiveScope)
      throws IllegalAccessException, InstantiationException {
    ActionContextBase context;

    try {
      context = (ActionContextBase) ctx;
    } catch (ClassCastException e) {
      throw new IllegalStateException("ActionContext [" + ctx + "]" + " must be subclass of ActionContextBase");
    }

    ActionForm form = context.findOrCreateActionForm(effectiveFormName, effectiveScope);

    if (form == null) {
      throw new IllegalArgumentException("No form found under scope [" + effectiveScope + "] and formName ["
          + effectiveFormName + "]");
    }
View Full Code Here

TOP

Related Classes of org.g4studio.core.mvc.xstruts.chain.contexts.ActionContextBase

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.