Announcement Announcement Module
Collapse
No announcement yet.
How to get application context for a servlet context Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get application context for a servlet context

    Hi,

    How to get an application context of a dispatcher servlet?
    In other words, I want to get a bean defined in <servletName>-servlet.xml file, NOT in the ROOT application context specified directly in web.xml (applicationContext.xml by default).
    The root application context is returned by WebApplicationContextUtils.getWebApplicationContex t(ServletContext) but that's not what I need - I need one of it's child contexts.

    Many thanks,
    Adam

  • #2
    RequestContextUtils...

    Comment

    Working...
    X