April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Configuring an XMLWebApplicationContext
n
n
n
n
n
n
n
n1- web.xml
n  <context-param>
n <param-name>contextConfigLocation</param-name>
n <param-value>/WEB-INF/applicationContext.xml</param-value>
n  </context-param>
n  <listener>
n <listener-class> org.springframework.web.context.ContextLoaderListener
n </listener-class>
n  </listener>
n2- Inside a Servlet
n   WebApplicationContextUtils.getWebApplicationContext(ServletContext);