What does “Context” in “ServletContext” mean?

前端 未结 6 1854
独厮守ぢ
独厮守ぢ 2021-01-31 11:04

Method getServletContextName() returns the name of the \"web application\". That means, \"ServletContext\" is nothing but \"web application\". Ok.

API defin

6条回答
  •  南笙
    南笙 (楼主)
    2021-01-31 11:36

    "Context" means.. context - it has contextual information and functionality for a particular web application:

    • application-wide parameters
    • application event listeners
    • metadata about the application

    ServletContext is the context of a Java web application (because it uses servlets)

提交回复
热议问题