<% HttpServletRequest httpReq = (HttpServletRequest) request; HttpServletResponse httpRes = (HttpServletResponse) response; HttpSession httpsession = httpReq.getSession(false); if (httpsession == null || httpsession.getAttribute("auth") == null || (Boolean) httpsession.getAttribute("auth") == false) { httpRes.sendRedirect(httpReq.getContextPath() + "/login/loginIndex.xhtml"); } %>
(DE3-6) Set-Reset Flip-Flop