jaas « Import « JSP-Servlet Q&A





1. JAAS - why are my .jsp import's not working?    stackoverflow.com

I have the below JSP file:

<%@page import="RdbmsLoginModule, PassiveCallbackHandler" %>
<%@page import="SessionLoginContext" %>
<%@page import="javax.security.auth.login.LoginContext, java.util.*" %>
<%@page import="java.io.*" %>

<!-- 
index.jsp: Simple JSP page to test a session-based LoginContext.
-->

<%
if(request.getParameter("user")==null) {
%>
<form action="jaas.jsp" method="POST">
    ...