Why doesn't Java Webapps have 2 web contexts?

java webapp should choose either a static context or "webcontext". Why is web context only needed for a web server such as a jetty, and why should we redirect everything to the same “web text”?

+4
source share
1 answer

Because Jetty is a container for JEE servlets, there is a one-to-one relationship between the web application and the web context in the JEE world. The goal is to be able to run multiple independent web applications in the same servlet container. Thus, it is easy to navigate to the corresponding web application in the first part of the URL path.

- -, . . 10.2 " ServletContext" Java 3.1:

- ServletContext. ServletContext .

+7

Source: https://habr.com/ru/post/1530435/


All Articles