Examples of ResultPath


Examples of jodd.madvoc.ResultPath

  /**
   * Locates the target file from action path and the result value.
   */
  protected String resolveTarget(ActionRequest actionRequest, String resultValue) {
    ResultPath resultPath = resultMapper.resolveResultPath(actionRequest.getActionPath(), resultValue);

    String actionPath = resultPath.getPath();
    String path = actionPath;
    String value = resultPath.getValue();

    String target;

    while (true) {

View Full Code Here

Examples of jodd.madvoc.ResultPath

      if (resultPathPrefix != null) {
        path = resultPathPrefix + path;
      }
    }

    return new ResultPath(path, value);
  }
View Full Code Here

Examples of jodd.madvoc.ResultPath

   * Resolves result path as a string, when parts are not important
   * and when only full string matters. Additional alias resolving
   * on full path is done.
   */
  public String resolveResultPathString(String path, String value) {
    ResultPath resultPath = resolveResultPath(path, value);
    String result = resultPath.getPathValue();

    return resolveAlias(result);
  }
View Full Code Here

Examples of jodd.madvoc.ResultPath

            key += ':' + customPath;
        }
        String target;
        if ((target = targetCache.get(key)) == null) {

            ResultPath resultPath = resultMapper.resolveResultPath(actionRequest.getActionPath(), customPath);

            String actionPath = resultPath.getPath();
            String path = actionPath;
            String value = resultPath.getValue();

            while (true) {
                // variant #1: with value
                if (value != null) {
                    if (path == null) {
View Full Code Here

Examples of jodd.madvoc.ResultPath

   * Locates the target file from action path and the result value.
   */
  protected String resolveTarget(ActionRequest actionRequest, String resultValue) {
    String resultBasePath = actionRequest.getActionConfig().getResultBasePath();

    ResultPath resultPath = resultMapper.resolveResultPath(resultBasePath, resultValue);

    String actionPath = resultPath.getPath();
    String path = actionPath;
    String value = resultPath.getValue();

    if (StringUtil.isEmpty(value)) {
      value = null;
    }

View Full Code Here

Examples of jodd.madvoc.ResultPath

      if (resultPathPrefix != null) {
        path = resultPathPrefix + path;
      }
    }

    return new ResultPath(path, value);
  }
View Full Code Here

Examples of jodd.madvoc.ResultPath

   * Resolves result path as a string, when parts are not important
   * and when only full string matters. Additional alias resolving
   * on full path is done.
   */
  public String resolveResultPathString(String path, String value) {
    ResultPath resultPath = resolveResultPath(path, value);
    String result = resultPath.getPathValue();

    return resolveAlias(result);
  }
View Full Code Here

Examples of org.apache.struts2.convention.annotation.ResultPath

    /**
     * {@inheritDoc}
     */
    public String determineResultPath(Class<?> actionClass) {
        String localResultPath = resultPath;
        ResultPath resultPathAnnotation = AnnotationUtils.findAnnotation(actionClass, ResultPath.class);
        if (resultPathAnnotation != null) {
            if (resultPathAnnotation.value().equals("") && resultPathAnnotation.property().equals("")) {
                throw new ConfigurationException("The ResultPath annotation must have either" +
                    " a value or property specified.");
            }

            String property = resultPathAnnotation.property();
            if (property.equals("")) {
                localResultPath = resultPathAnnotation.value();
            } else {
                try {
                    ResourceBundle strutsBundle = ResourceBundle.getBundle("struts");
                    localResultPath = strutsBundle.getString(property);
                } catch (Exception e) {
View Full Code Here

Examples of org.apache.struts2.convention.annotation.ResultPath

    /**
     * {@inheritDoc}
     */
    public String determineResultPath(Class<?> actionClass) {
        String localResultPath = resultPath;
        ResultPath resultPathAnnotation = AnnotationTools.findAnnotation(actionClass, ResultPath.class);
        if (resultPathAnnotation != null) {
            if (resultPathAnnotation.value().equals("") && resultPathAnnotation.property().equals("")) {
                throw new ConfigurationException("The ResultPath annotation must have either" +
                    " a value or property specified.");
            }

            String property = resultPathAnnotation.property();
            if (property.equals("")) {
                localResultPath = resultPathAnnotation.value();
            } else {
                try {
                    ResourceBundle strutsBundle = ResourceBundle.getBundle("struts");
                    localResultPath = strutsBundle.getString(property);
                } catch (Exception e) {
View Full Code Here

Examples of org.apache.struts2.convention.annotation.ResultPath

    /**
     * {@inheritDoc}
     */
    public String determineResultPath(Class<?> actionClass) {
        String localResultPath = resultPath;
        ResultPath resultPathAnnotation = AnnotationTools.findAnnotation(actionClass, ResultPath.class);
        if (resultPathAnnotation != null) {
            if (resultPathAnnotation.value().equals("") && resultPathAnnotation.property().equals("")) {
                throw new ConfigurationException("The ResultPath annotation must have either" +
                    " a value or property specified.");
            }

            String property = resultPathAnnotation.property();
            if (property.equals("")) {
                localResultPath = resultPathAnnotation.value();
            } else {
                try {
                    ResourceBundle strutsBundle = ResourceBundle.getBundle("struts");
                    localResultPath = strutsBundle.getString(property);
                } catch (Exception e) {
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.