Package org.g4studio.core.mvc.xstruts.action

Examples of org.g4studio.core.mvc.xstruts.action.ActionMapping


   * this mapping, creating and stashing one if necessary. If there is no form
   * bean associated with this mapping, return <code>null</code>. </p>
   */
  public ActionForm getActionForm() {
    // Is there a mapping associated with this request?
    ActionMapping mapping = getMapping();

    if (mapping == null) {
      return (null);
    }

    // Is there a form bean associated with this mapping?
    String attribute = mapping.getAttribute();

    if (attribute == null) {
      return (null);
    }

    // Look up the existing form bean, if any
    ActionForm instance;

    if ("request".equals(mapping.getScope())) {
      instance = (ActionForm) this.request.getAttribute(attribute);
    } else {
      instance = (ActionForm) this.session.getAttribute(attribute);
    }

View Full Code Here

TOP

Related Classes of org.g4studio.core.mvc.xstruts.action.ActionMapping

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.