<%@ page contentType="text/html; charset=Windows-31J" %>
<%@ taglib uri="/struts-html" prefix="html" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-31j">
<title>Login</title>
</head>
<body>
<font color="red"><html:errors/></font>
<html:form action="/LoginOtherAction.do">
<table width=100%>
<tr>
<td>UserName:<html:text property="userId" /><font color="red"><html:errors property="userId"/></font></td>
</tr>
<tr>
<td>Password:<html:text property="passWord" /><font color="red"><html:errors property="password"/></font></td>
</tr>
<tr>
<td><html:submit>Login</html:submit></td>
</tr>
</table>
<br>
</html:form>
</body>
</html>
<%@ taglib uri="/struts-html" prefix="html" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-31j">
<title>Login</title>
</head>
<body>
<font color="red"><html:errors/></font>
<html:form action="/LoginOtherAction.do">
<table width=100%>
<tr>
<td>UserName:<html:text property="userId" /><font color="red"><html:errors property="userId"/></font></td>
</tr>
<tr>
<td>Password:<html:text property="passWord" /><font color="red"><html:errors property="password"/></font></td>
</tr>
<tr>
<td><html:submit>Login</html:submit></td>
</tr>
</table>
<br>
</html:form>
</body>
</html>
本文详细介绍了登录页面的HTML和Struts标签库的使用,包括表单、错误提示和用户输入验证。

被折叠的 条评论
为什么被折叠?



