Examples of ActionMapping


Examples of org.apache.struts.action.ActionMapping

             * the forms First try to find the panels action config. Look for
             * the same name as the panel id prefixed by a /
             */
            ActionConfig config = mapping.getModuleConfig().findActionConfig("/" + panel.getId());
            if (null != config && config instanceof ActionMapping) {
                ActionMapping subMapping = (ActionMapping) config;
                SubActionWrapper subActionWrapper = getSubActionWrapper(mapping, form, subMapping, request, index);
                if (null != subActionWrapper)
                    subActions.add(subActionWrapper);
            }
            index++;
View Full Code Here

Examples of org.apache.struts.action.ActionMapping

     * @param parameterId
     * @param availableItem
     * @return String
     */
    public String getPath(String parameterId, AvailableTableItemAction availableItem) {
        ActionMapping attribute = (ActionMapping)availableItem.getRequest().getAttribute(Constants.REQ_ATTR_ACTION_MAPPING);
        String formattedPath = MessageFormat.format(requiredPath, new Object[] {parameterId, attribute.getName(), attribute.getPath()});
        return formattedPath;       
    }
View Full Code Here

Examples of org.apache.struts2.dispatcher.mapper.ActionMapping

  /**
   * reserved method parameter
   */
  public ActionMapping getMapping(HttpServletRequest request, ConfigurationManager configManager) {
    ActionMapping mapping = super.getMapping(request, configManager);
    if (null != mapping) {
      String method = request.getParameter(methodParam);
      if (StringUtils.isNotEmpty(method)) {
        mapping.setMethod(method);
      }
    }
    return mapping;
  }
View Full Code Here

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

Examples of org.springframework.web.portlet.bind.annotation.ActionMapping

          String[] modeKeys = new String[0];
          String[] params = new String[0];
          if (typeMapping != null) {
            params = StringUtils.mergeStringArrays(typeMapping.params(), params);
          }
          ActionMapping actionMapping = AnnotationUtils.findAnnotation(method, ActionMapping.class);
          RenderMapping renderMapping = AnnotationUtils.findAnnotation(method, RenderMapping.class);
          ResourceMapping resourceMapping = AnnotationUtils.findAnnotation(method, ResourceMapping.class);
          EventMapping eventMapping = AnnotationUtils.findAnnotation(method, EventMapping.class);
          RequestMapping requestMapping = AnnotationUtils.findAnnotation(method, RequestMapping.class);
          if (actionMapping != null) {
            params = StringUtils.mergeStringArrays(params, actionMapping.params());
            predicate = new ActionMappingPredicate(actionMapping.value(), params);
          }
          else if (renderMapping != null) {
            params = StringUtils.mergeStringArrays(params, renderMapping.params());
            predicate = new RenderMappingPredicate(renderMapping.value(), params);
          }
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.