|
It is better to write one custom tag which we can include in the top of the each and every page.So before evaluating the page it will process the custom tag where we have to check whether the session variable is avialble or not. If not then you can redirect to your sessionexpired.jsp page by something like this
HttpSession session = this.pageContext().getSession();
if(session.getAttribute("userSyscode")==null)
{
this.pageContext.forward("/jsp/rightsPag.jsp");
}
|