Results 1 to 2 of 2

Thread: booking faces sample app; contextConfigLocation

  1. #1
    Join Date
    May 2005
    Location
    California, US
    Posts
    735

    Default booking faces sample app; contextConfigLocation

    Near the top of its web.xml file is
    Code:
    	<!-- The master configuration file for this Spring web application -->
    	<context-param>
    		<param-name>contextConfigLocation</param-name>
    		<param-value>
    			/WEB-INF/config/web-application-config.xml
    		</param-value>
    	</context-param>
    Then further on down there is
    Code:
    	<!-- The front controller of this Spring Web application, responsible for handling all application requests -->
    	<servlet>
    		<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
    		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    		<init-param>
    			<param-name>contextConfigLocation</param-name>
    			<param-value></param-value>
    		</init-param>
    		<load-on-startup>2</load-on-startup>
    	</servlet>
    Question 1: I didn't realize that you could use init-param for Spring's contextConfigLocation within the servlet section. I've always seen contextConfigLocation set up via the context-param. If I were to specify the contextConfigLocation only within the servlet section does that mean I could have multiple Spring "containers" (if I had multiple servlet sections)? Does that work?

    Question 2: What's the purpose of the booking-faces web.xml specifying nothing for contextConfigLocation within the servlet section?

  2. #2
    Join Date
    Jul 2008
    Posts
    157

    Default

    Yes, I have the same question!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •