This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I develop simple web application. I have a problem with the login/logout page.
Here's my logout.jsp page:
This logout page includes navigation file (navigation.jsp) that contains menus that a user can acess. Here's the navigation.jsp file:
The problem is, I wanted to show the login link once a user has logged out. I used this logic in my navigation.jsp file:
I invalidate session in my logout.jsp file, so the session should be null. This meets the condition required in the "if logic" above (session == null), so the login link should be displayed. But somehow, it is not displayed..
Any help would be appreciated..
Dev. Environment Windows XP sp2 Tomcat 5.5 JRE 1.5.0_15