Announcement Announcement Module
Collapse
No announcement yet.
Application Context and include Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Application Context and include

    Dear all,

    I have a question (maybe basic) about the application context. Is it possible to do some include of other xml in this file ?


    Thanks

  • #2
    If you are referring to include other context files then yes.
    You can include a context file in another context file.

    Example from spring reference

    Code:
    <beans>
    <import resource="services.xml"/>
    <import resource="resources/messageSource.xml"/>
    <import resource="/resources/themeSource.xml"/>
    <bean id="bean1" class="..."/>
    <bean id="bean2" class="..."/>
    </beans>

    Comment


    • #3
      Perfect, thanks

      And sory for the doc

      Comment


      • #4
        An alternative is to simply name multiple files when loading the ApplicationContext.
        http://www.springframework.org/docs/....String&#91;])
        Last edited by karldmoore; Aug 27th, 2007, 03:46 PM.

        Comment

        Working...
        X