check whether the session has expired

I am using struts. I want to notify the user when the session has expired. How can I know that the session has expired ? what is the best way to implemant such notification ? Should all my actions extend one super action, within which I implement the business logic that checks whether the session has expired ?