Results 1 to 2 of 2

Thread: Spring's ApplicationContext vs servlet's ServletContext

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    Default Spring's ApplicationContext vs servlet's ServletContext

    Hi,

    Re Spring's WebAppContext, what is its relationship to a ServletContext? Are they the same/synonyms? If not, what is the difference between the two? Also, in servlet/jsp dev there are scopes such as page, request and context, can one use these in Spring or are there other wrappers instead?

    Thanks in advance.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    I suggest a read of the reference guide or that you pickup a spring book as a lot of your questions are answered in there.

    ApplicationContext and ServletContext have no relationship nor are they equal ( I suggest a read on what both are). For a Spring based Web application the applicationcontext is stored in the servletcontext but that is the only relationship there is.
    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
  •