Example usage for org.springframework.web.servlet.tags.form FormTag MODEL_ATTRIBUTE_VARIABLE_NAME

List of usage examples for org.springframework.web.servlet.tags.form FormTag MODEL_ATTRIBUTE_VARIABLE_NAME

Introduction

In this page you can find the example usage for org.springframework.web.servlet.tags.form FormTag MODEL_ATTRIBUTE_VARIABLE_NAME.

Prototype

String MODEL_ATTRIBUTE_VARIABLE_NAME

To view the source code for org.springframework.web.servlet.tags.form FormTag MODEL_ATTRIBUTE_VARIABLE_NAME.

Click Source Link

Document

The name of the javax.servlet.jsp.PageContext attribute under which the form object name is exposed.

Usage

From source file:com.technologicaloddity.saha.util.AjaxPageRendererImpl.java

public String renderWithNestedModel(ModelAndView modelAndView, HttpServletRequest request,
        HttpServletResponse response, String nestedModelAttributeName) {
    request.setAttribute(FormTag.MODEL_ATTRIBUTE_VARIABLE_NAME, nestedModelAttributeName);
    request.setAttribute(NestedPathTag.NESTED_PATH_VARIABLE_NAME,
            nestedModelAttributeName + PropertyAccessor.NESTED_PROPERTY_SEPARATOR);
    return render(modelAndView, request, response);
}

From source file:com.benfante.taglib.frontend.tags.CheckboxTag.java

protected String autogenerateErrorId() throws JspException {
    String path = getPropertyPath();
    if ("".equals(path) || "*".equals(path)) {
        path = (String) this.pageContext.getAttribute(FormTag.MODEL_ATTRIBUTE_VARIABLE_NAME,
                PageContext.REQUEST_SCOPE);
    }//  w  w w .j  a  va  2 s .c  om
    return StringUtils.deleteAny(path, "[]") + ".errors";
}