<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>Struts 2 - Login Application </title>
<style type="text/css">
.error{color: #ff0000;font-size: 14px;height: 3px;font-weight: bold;}
</style>
</head>
 
<body>
<h2>Login page:</h2>
<b>Login & Password hints<br></b>
Login Id: admin<br>
Password: admin  <br><br>
<div class="error">
<s:actionerror/>
</div>

<s:form action="login.action" method="post">
	<s:textfield name="username" key="label.username" size="20" />
    <s:password name="password" key="label.password" size="20" />
    <s:submit method="execute" key="label.login" align="left" />
</s:form>
</body>
</html>