⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adminlogin.jsp

📁 一个简单的struts+hib例子
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>adminLogin.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body {
	background-color: #89BDE4;
}
-->
</style></head>

<body>
 
	<BR>
	<BR>
	<BR>
	<BR>
	<div align="center">
		<b><bean:message key="admin.login.title1" />
		</b>
	</div>
	<html:form action="/adminLogin.do" method="post" focus="login">
	
		<table width="500" align="center"
			style="BORDER-left: #8080FF 2px solid; BORDER-top: #8080FF 2px solid;BORDER-bottom: #8080FF 2px solid; BORDER-right: #8080FF 2px solid;">
			<tr>
				<td width="20%" align="center">
					<bean:message key="admin.login.title2" />
				</td>
				<td width="80%">
					<html:text property="login_name" size="15" />
					&nbsp;
					<font size="2" color="#FF0000"><html:errors
							property="login_name" />
					</font>
				</td>
			</tr>
			<tr>
				<td align="center">
					<bean:message key="admin.login.title3" />
				</td>
				<td>
					<html:password property="login_password" size="20" />
					&nbsp;
					<font size="2" color="#FF0000"><html:errors
							property="login_password" />
					</font>
				</td>
			</tr>
			<tr>
				<td align="center">
					<bean:message key="admin.login.validateCode" />
				</td>
				<td>
					<html:text property="validateCode" size="5" />
					&nbsp;
					<img border=0 src="image.jsp">
					&nbsp;
					<font size="2" color="#FF0000"> <html:errors
							property="validateCode" />
					</font>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<html:submit value="登陆" />
					&nbsp;&nbsp;&nbsp;&nbsp;
					<html:reset value="重置" />
				</td>
			</tr>
		</table>
		<div align="center">
		<bean:message key="author.for.system" />
		</div>
		<div align="center">
			<font color="#FF0000"> <html:messages id="validateCode"
					property="validateCode.error" message="true">
					<bean:write name="validateCode" />
				</html:messages> </font>
		</div>
		<div align="center">
			<font color="#FF0000"><html:messages id="messages"
					property="username_or_password_error" message="true">
					<bean:write name="messages" />
				</html:messages>
			</font>
		</div>
		<div align="center">
			<font color="#FF0000"><html:errors
					property="admin.login.name.unallowed" />
			</font>
		</div>
		<div align="center">
			<font color="#FF0000"><html:errors
					property="admin.login.password.unallowed" />
			</font>
		</div>
		<div align="center">
			<font color="#FF0000"><html:errors
					property="admin.login.validateCode.unallowed" />
			</font>
		</div>
	</html:form>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -