I was wondering if there is a global session concept in tomcat (à la PHP). Imagine a really vanilla webapp with a servlet that takes input via POST and dumps them into an object (ignore obvious security concerns). The index page then just displays all the input so far.
I would like to put this object into a global variable. I can go the static methods / singleton route but just wondering if tomcat supports global variables.
Thanks!
There is many context in the Servlet specifications:
I hope this can help you.