Results 1 to 2 of 2

Thread: How to get application context for a servlet context

  1. #1
    Join Date
    Nov 2007
    Location
    Tarnowskie Góry, Poland
    Posts
    12

    Question 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    RequestContextUtils...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

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