1 16 17 package org.springframework.web.servlet.view; 18 19 import javax.servlet.http.HttpServletRequest ; 20 21 import org.springframework.context.MessageSource; 22 import org.springframework.web.servlet.support.JstlUtils; 23 24 69 public class JstlView extends InternalResourceView { 70 71 private MessageSource jstlAwareMessageSource; 72 73 74 protected void initApplicationContext() { 75 super.initApplicationContext(); 76 this.jstlAwareMessageSource = 77 JstlUtils.getJstlAwareMessageSource(getServletContext(), getApplicationContext()); 78 } 79 80 protected void exposeHelpers(HttpServletRequest request) throws Exception { 81 JstlUtils.exposeLocalizationContext(request, this.jstlAwareMessageSource); 82 } 83 84 } 85 | Popular Tags |