This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
In my application i have 200 static pages(html) and 50 dynamic pages(jsp). The problem is i want to display logout/login buttons in all jsp pages&html pages according per user status. How to know the user is logged in or not while displaying html pages.
Hi, My suggestion pplies only if you are using basic, digest or form based athentication. The getUserPrincipal() method of HttpServletRequest returns a java.security.Principal object containing the name of the current authenticated user which can be in turn used to determine if user is really logged on.
Originally posted by surender reddy: Hi all, How to know the user is logged in or not while displaying html pages.
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, ITIL V3 Foundation Certification