View Single Post
  #9 (permalink)  
Old 12-14-2007, 12:09 PM
felixtfelix felixtfelix is offline
Member
 
Join Date: Dec 2007
Posts: 32
felixtfelix is on a distinguished road
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");
}
Reply With Quote