Example usage for org.springframework.web.servlet.view AbstractTemplateView SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE

List of usage examples for org.springframework.web.servlet.view AbstractTemplateView SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE

Introduction

In this page you can find the example usage for org.springframework.web.servlet.view AbstractTemplateView SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE.

Prototype

String SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE

To view the source code for org.springframework.web.servlet.view AbstractTemplateView SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE.

Click Source Link

Document

Variable name of the RequestContext instance in the template model, available to Spring's macros: e.g.

Usage

From source file:architecture.ee.web.struts2.view.freemarker.ExtendedFreemarkerManager.java

protected void exposeSpringMacroHelpers(Map<String, Object> model, HttpServletRequest request,
        HttpServletResponse response) {//from  w  ww  . j a va 2s  .  com
    model.put(AbstractTemplateView.SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE,
            new RequestContext(request, response, request.getSession().getServletContext(), model));
}