1 16 17 package org.springframework.web.servlet.view.tiles; 18 19 import javax.servlet.http.HttpServletRequest ; 20 21 import org.springframework.context.MessageSource; 22 import org.springframework.web.servlet.support.JstlUtils; 23 24 39 public class TilesJstlView extends TilesView { 40 41 private MessageSource jstlAwareMessageSource; 42 43 44 protected void initApplicationContext() { 45 super.initApplicationContext(); 46 this.jstlAwareMessageSource = 47 JstlUtils.getJstlAwareMessageSource(getServletContext(), getApplicationContext()); 48 } 49 50 51 protected void exposeHelpers(HttpServletRequest request) throws Exception { 52 JstlUtils.exposeLocalizationContext(request, this.jstlAwareMessageSource); 53 } 54 55 } 56 | Popular Tags |