<%@ page errorPage = "true" %>
<html>
<body>
<h3>An Exception has occurred </h3>
<table>
<tr>
<td>Exception Class : </td>
<td> <%= exception.getClass() %></td>
</tr>
<tr>
<td>Message:</td>
<td><%= exception.getMessage() %></td>
</tr>
</table>
<br>
To go back to the login page click Login Page button
<form name="f2" action="LoginPage.html">
<input type="submit" name="button1" value="login Page">
</form>
</body>
</html>
//AuthenticateCustomer.jsp
<%@ page errorPage = "LoginErrorPage.jsp" %>
<html>
<body>
<font face = "verdana" >
<%
String user = request.getParameter("uname");
int customerID = Integer.parseInt(user);
String pass = request.getParameter("password");
if( customerID == 1010 && pass.equals ("Jackson"))
{
out.println("Welcome to online Banking system");
%>
<br>
<br>
<%
out.println("Login Successful ");
}
else
{
out.println("Login UnSuccessful ");
}
%>
</font>
</body>
</html>
//LoginPage.html
<html>
<body>
<form name="f1" action="AuthenticateCustomer.jsp">
<font size=4 face="Verdana" color=#120292>
<marquee>Earnest Bank </marquee>
<br>
<br>
<table cellspacing=5 cellpadding=5 bgcolor=#959999 colspan=2
rowspan=2 align="center">
<tr>
<td>Bank Customer Authentication form </td>
</tr>
<tr>
<td>Enter Customer ID:</td>
<td><input type=text name="uname"></td>
</tr>
<tr>
<td>Enter Pasword :</td>
<td><input type=password name = "password"></td>
</tr>
<table>
<br>
<table align = "center">
<tr>
<td><input type="Submit" value="login"></td>
<td><input type="Reset" value="Cancel "></td>
</tr>
</table>
</form>
</body>
</html>