Is there any way to handle the session expiry event from web.xml?
usually we will do it in a servlet by checking the session expiry time and if it is expired, we will redirect it to another jsp which is usally the login page with a message saying that the session has expired.
but is it possible to do it from web.xml? i mean in an existing application, where we have thousands of servlets, it is not possible to handle the event in each servlet. I was just checking is there any other way of doing it in a centralized way.