Hi,
Is it possible to specify multiple Spring servlets in a web.xml? If it is possible, then what values should the <context-param/> and <servlet/> elements take and how do they relate to one another?
When I have a single Spring servlet (DispatcherServlet, acting as front controller), then I use the <context-param/> to load extra config files. So, my <context-param/> and <servlet/> elements look something like the following:
Thanks in advance for suggestions/explanations,Code:<context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:dataaccessservices-config.xml </param-value> </context-param> <servlet> <servlet-name>frontController</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/frontcontroller-servlet-config.xml </param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
Peeper.


Reply With Quote