Example usage for org.springframework.web.servlet.support JspAwareRequestContext JspAwareRequestContext

List of usage examples for org.springframework.web.servlet.support JspAwareRequestContext JspAwareRequestContext

Introduction

In this page you can find the example usage for org.springframework.web.servlet.support JspAwareRequestContext JspAwareRequestContext.

Prototype

public JspAwareRequestContext(PageContext pageContext, @Nullable Map<String, Object> model) 

Source Link

Document

Create a new JspAwareRequestContext for the given page context, using the given model attributes for Errors retrieval.

Usage

From source file:com.javaetmoi.core.mvc.tag.TestHtml5InputTag.java

protected MockPageContext createAndPopulatePageContext(Map<String, Object> model) {
    MockPageContext pc = createPageContext();
    JspAwareRequestContext requestContext = new JspAwareRequestContext(pc, model);
    pc.setAttribute(RequestContextAwareTag.REQUEST_CONTEXT_PAGE_ATTRIBUTE, requestContext);
    return pc;/*from ww w.  ja  v a  2  s  . c  om*/
}