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

📄 login.jsp

📁 一个基本的图书馆管理系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
 
				<!-- 登陆部分页面 -->
				<table border="0" width="180" cellPadding="0" cellSpacing="0"
					valign="top">
					<tr align="center" valign="middle">
						<td width="180" height="23" colspan="2"
							background="images/login.jpg" class="font35">用户登陆</td>
					</tr>
					<tr>
						<td width="177" valign="top" bgcolor="#fff8d9">
						<table border="0" width="177" cellPadding="0" cellSpacing="0"
							valign="top">
							<html:form action="/loginsub" styleId="loginform">
							<input type="hidden" name="pagename" value="/register">
							<logic:present name="loginerrorString">
							<tr>
								<td width="177" height="22" colspan="4" align="center">
								<font class="font36">
								<bean:write name="loginerrorString"/>
								</font>
								</td>
							</tr>
							</logic:present>
							<logic:notPresent name="loginerrorString">
							<tr>
								<td width="177" height="8" colspan="4">
								</td>
							</tr>
							</logic:notPresent>
							<!-- 已登陆 -->
							<logic:present name="UserSession" scope="session">
							<tr>
								<td	width="5" height="22" align="right"></td>
								<td	width="167"	height="22"	align="center"><font class="font12"><bean:write name="UserSession" property="userName"/>,欢迎您!</font></td>
								<td	width="5" height="22"></td>
							</tr>
							<tr><td	width="177"	height="5" colspan="4"></td></tr>
							<tr>
								<td	width="5" height="22" align="right"></td>
								<td	width="167"	height="22"	align="center"><font class="font12">您在<bean:write name="UserSession" property="loginTime"/>登录本系统。</font></td>
								<td	width="5" height="22"></td>
							</tr>
							<tr><td	width="177"	height="5" colspan="4"></td></tr>
							<tr>
								<td	width="5" height="22"></td>
								<td	width="167"	height="22"	align="right"><input
									type="button" id="blogout" name="blogout" value="退出"
									onclick="javascript:logoutsub();"></td>
								<td	width="5" height="22"></td>
							</tr>
							</logic:present>
							<!-- 未登陆 -->
							<logic:notPresent name="UserSession" scope="session">
							<tr height="22">
								<td width="5" align="right"></td>
								<td width="47" align="right"><font class="font12">帐号:</font></td>
								<td width="120" align="right"><html:text property="lloginName" style="height: 20; width: 120"/><html:errors property="lloginName"/></td>
								<td width="5"></td>
							</tr>
							<tr>
								<td width="177" height="5" colspan="4"></td>
							</tr>
							<tr height="22">
								<td width="5" align="right"></td>
								<td width="47" align="right"><font class="font12">密码:</font></td>
								<td width="120" align="right"><html:password property="lpassword" style="height: 20; width: 120"/><html:errors property="lpassword"/></td>
								<td width="5"></td>
							</tr>
							<tr>
								<td width="177" height="5" colspan="4"></td>
							</tr>
							<tr height="22">
								<td width="5"></td>
								<td width="167" colspan="2" align="right"><input
									type="button" id="blogin" name="blogin" value="登陆"
									onclick="javascript:loginsub();">&nbsp;&nbsp;&nbsp;
									<input name="breg" type="button" id="breg" value="注册" onclick="javascript:registersub();">
									</td>
								<td width="5"></td>
							</tr>
							</logic:notPresent>
							<tr>
								<td width="177" height="5" colspan="4"></td>
							</tr>
		                    </html:form>
						</table>
						</td>
						<td width="3" valign="top" background="images/m_left_right.jpg"></td>
					</tr>
					<tr>
						<td width="180" height="4" valign="top" colspan="2"><img
							border="0" src="images/m_left_bottom.jpg"></td>
					</tr>
				</table>

⌨️ 快捷键说明

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