<%-- This JSP displays a login screen. When the user fills out the login screen, it will submit it to the Login Servlet, which will verify the user's credentials by calling EJB components. If the verification is unsuccessful, the login servlet will return the user to this page to re-enter his credentials. If the verification is successful, Jasmine's main page will be displayed. --%> Jasmine's Login page <%-- Include the title, which is "Jasmine's Computer Parts"--%> <%-- Indicate the error page to use if an error occurs --%> <%-- Display the login form --%>

Please enter login information

Name:
Password:
<% // get whether the person logged in successfully Boolean failed = (Boolean) request.getAttribute("loginFailed"); if (failed != null) { if (failed.booleanValue() == true) { %>

Could not log in! Please try again.

<% } } %> <%-- Include the page footer --%>