Example usage for org.springframework.web.servlet.support JstlUtils getJstlAwareMessageSource

List of usage examples for org.springframework.web.servlet.support JstlUtils getJstlAwareMessageSource

Introduction

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

Prototype

public static MessageSource getJstlAwareMessageSource(@Nullable ServletContext servletContext,
        MessageSource messageSource) 

Source Link

Document

Checks JSTL's "javax.servlet.jsp.jstl.fmt.localizationContext" context-param and creates a corresponding child message source, with the provided Spring-defined MessageSource as parent.

Usage

From source file:com.denksoft.springstarter.util.TilesViewExtended.java

protected void initApplicationContext() {
    super.initApplicationContext();
    this.jstlAwareMessageSource = JstlUtils.getJstlAwareMessageSource(getServletContext(),
            getApplicationContext());//from ww  w.j av  a 2 s. c o m
}