Home java essence ServletContext

essence ServletContext

Author

Date

Category

I understand the SERVLETCONTEXT, I understand the essence itself, using this interface we can get environmental data in which the servlet is performed, but as this data is applied and where in practice, I do not understand who can explain the available


Answer 1, Authority 100%

ServletContext is a resource that is available within the session or in the Httpsession object, which can be obtained from HTTPServletRequest, which is available in all classes in the processing of HTTP requests, respectively, SERVLETCONTEXT is customary to use as Session Scope Resource in the controller or standard MVC applications. .

and more … The total resource is used to exchange data between the independent components of the application, such as variable areas of the class visibility, in particular cases are used to exchange data between class methods.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions