Announcement Announcement Module
No announcement yet.
Spring's ApplicationContext vs servlet's ServletContext Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring's ApplicationContext vs servlet's ServletContext


    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
    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.