login.jsp
<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>Insert title here</title>
</head>
<body>
<fmt:bundle basename="resources.MessageResources">
<form action="login.do" method="post">
<fmt:message key="login.form.field.username"/>:<input type="text" name="username"><br>
<fmt:message key="login.form.field.password"/>:<input type="password" name="password"></br>
<input type="submit" value="<fmt:message key="login.form.button.login"/>">
</form>
</fmt:bundle>
</body>
</html>