Package org.springframework.web.servlet.support

Examples of org.springframework.web.servlet.support.RequestDataValueProcessor


   * Closes the '<code>form</code>' block tag and removes the form object name
   * from the {@link javax.servlet.jsp.PageContext}.
   */
  @Override
  public int doEndTag() throws JspException {
    RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
    ServletRequest request = this.pageContext.getRequest();
    if ((processor != null) && (request instanceof HttpServletRequest)) {
      writeHiddenFields(processor.getExtraHiddenFields((HttpServletRequest) request));
    }
    this.tagWriter.endTag();
    return EVAL_PAGE;
  }
View Full Code Here


        requestContext = new RequestContext(request, response, wac.getServletContext(), model);
      }
    }

    if (requestContext != null) {
      RequestDataValueProcessor processor = requestContext.getRequestDataValueProcessor();
      if (processor != null) {
        targetUrl = processor.processUrl(request, targetUrl);
      }
    }
   
    return targetUrl;
  }
View Full Code Here

  /**
   * Process the given form field through a {@link RequestDataValueProcessor}
   * instance if one is configured or otherwise returns the same value.
   */
  protected final String processFieldValue(String name, String value, String type) {
    RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
    ServletRequest request = this.pageContext.getRequest();
    if (processor != null && (request instanceof HttpServletRequest)) {
      value = processor.processFormFieldValue((HttpServletRequest) request, name, value, type);
    }
    return value;
  }
View Full Code Here

        requestContext = new RequestContext(request, response, wac.getServletContext(), model);
      }
    }

    if (requestContext != null) {
      RequestDataValueProcessor processor = requestContext.getRequestDataValueProcessor();
      if (processor != null) {
        targetUrl = processor.processUrl(request, targetUrl);
      }
    }
   
    return targetUrl;
  }
View Full Code Here

  @Override
  public int doEndTag() throws JspException {
    String url = createUrl();
   
    RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
    ServletRequest request = this.pageContext.getRequest();
    if ((processor != null) && (request instanceof HttpServletRequest)) {
      url = processor.processUrl((HttpServletRequest) request, url);
    }
   
    if (this.var == null) {
      // print the url to the writer
      try {
View Full Code Here

  /**
   * Process the action through a {@link RequestDataValueProcessor} instance
   * if one is configured or otherwise returns the action unmodified.
   */
  private String processAction(String action) {
    RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
    ServletRequest request = this.pageContext.getRequest();
    if ((processor != null) && (request instanceof HttpServletRequest)) {
      action = processor.processAction((HttpServletRequest) request, action);
    }
    return action;
  }
View Full Code Here

   * Closes the '<code>form</code>' block tag and removes the form object name
   * from the {@link javax.servlet.jsp.PageContext}.
   */
  @Override
  public int doEndTag() throws JspException {
    RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
    ServletRequest request = this.pageContext.getRequest();
    if ((processor != null) && (request instanceof HttpServletRequest)) {
      writeHiddenFields(processor.getExtraHiddenFields((HttpServletRequest) request));
    }
    this.tagWriter.endTag();
    return EVAL_PAGE;
  }
View Full Code Here

  @Override
  public int doEndTag() throws JspException {
    String url = createUrl();

    RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
    ServletRequest request = this.pageContext.getRequest();
    if ((processor != null) && (request instanceof HttpServletRequest)) {
      url = processor.processUrl((HttpServletRequest) request, url);
    }

    if (this.var == null) {
      // print the url to the writer
      try {
View Full Code Here

      if (wac != null && wac.getServletContext() != null) {
        requestContext = new RequestContext(request, response, wac.getServletContext(), model);
      }
    }
    if (requestContext != null) {
      RequestDataValueProcessor processor = requestContext.getRequestDataValueProcessor();
      if (processor != null) {
        targetUrl = processor.processUrl(request, targetUrl);
      }
    }
    return targetUrl;
  }
View Full Code Here

  /**
   * Process the action through a {@link RequestDataValueProcessor} instance
   * if one is configured or otherwise returns the action unmodified.
   */
  private String processAction(String action) {
    RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor();
    ServletRequest request = this.pageContext.getRequest();
    if (processor != null && request instanceof HttpServletRequest) {
      action = processor.processAction((HttpServletRequest) request, action, getHttpMethod());
    }
    return action;
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.support.RequestDataValueProcessor

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.