Using: Tomcat 5.5.7, Sun JDK 1.5, Struts 1.2.4 ---------------------------------------------------------- I have few layout.jsp templates where I have following chuck of code which should redirect the browser to login page if session expires: <% String loginCheck = "notLoggedIn"; if( session.getAttribute( "session_unique_id" )!=null ) { loginCheck = (String)session.getAttribute( "session_unique_id" ); } if( !loginCheck.equals("admin0") ) { %> <logic:redirect forward="loginPage"/> <% } %>
But when session expires, or when somebody who is not 'admin0' tries to access the page, they get a blank page instead of getting redirection. I have tried using jsp:forward directive as well, but the result is same. If anybody has any suggestion on this, please let me know. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]