<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Servlet Login Application!</title>
</head>

<body marginwidth="100">
<h1>Simple Login Example </h1>
<hr noshade="noshade">
The username and password values are programmatically set to 'myeclipse' with the help of the ServletContextListener which is added using the ServletContainerInitializer technology in Java EE 6. Please see the source code for more details.
<hr noshade="noshade">
	<form action="AnnotatedServlet" method="post">
	<br>
		<table border="2">
			<tr>
				<td COLSPAN="2">
					<P>Please enter myeclipse as the username and password</P>
				</td>
			</tr>

			<tr>
				<td>
					<p>
						<b>Name:</b>
					</p>
				</td>
				<td>
					<p>
						<input type="text" name="username" value="">
					</p>
				</td>
			</tr>

			<tr>
				<td>
					<p>
						<b>Password:</b>
					</p>
				</td>
				<td>
					<p>
						<input type="password" name="password" value="">
					</p>
				</td>
			</tr>

			<tr>
				<td align="center" colspan="2"><input type="submit" value="Login"></TD>
			</tr>
		</table>

	</form>
	
</body>
</html>
