This question is related to my other question "How to redirect to Login page when Session is expired in Java web application?". Below is what I'm trying to do: