In JSP, Is there a way to display an alert to the user, before session time out.
posted 9 years ago
yeah, ofcourse, just check for the place in your jsp code where you are calling the "LogoutAction.do" class or something similar. In that place, you can call a window.alert() saying "Session is about to be set to null".
Another thing you can do is, in your LogoutAction class, check for the request.getSession() value, and you can do: