Created and destroyed jsp PageContext objects as part of the http request-response loop, or they are cached and reused between requests.
PageContext has lifecycle methods that offer reuse between requests. those. initialize (), release ().
If they are reused, this can create serious problems with concurrency: if two HTTP requests arrive, requesting the same jsp page, and each request is processed by its own stream, but sets the attributes for the general PageContext object, they will display each other.
Any help appreciated. By the way, I use the servlet container built into Apache Sling.
source share