login.jsp

来自「构建一个以商品销售为主体的电子商城,功能描叙如下: 1.按商品大类及商品名称进」· JSP 代码 · 共 73 行

JSP
73
字号
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<table width="198" height="147" align="right" cellpadding="0" cellspacing="0" background="images/login.jpg" valign="top">
	<tr>
		<td height="40" align="right">&nbsp;</td>
	</tr>
    <tr>
      <td align="right">&nbsp;</td>
    </tr> 
	<tr>
		<td height="98">
<form name="form1" method="post" action="login.lzw">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td width="10%">&nbsp;</td>
	<td width="90%" valign="top">
	<c:if test="${param.loger=='error'}">
		<script type="text/javascript">
		<!--
		alert("用户名和密码错误,或者该用户已被冻结。");
		//-->
		</script>
	</c:if>
	<c:if test="${sessionScope.username==null }">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="94%" height="24">会员名
				<input name="username" type="text" class="txt_grey"
					id="username" size="16"></td>
		</tr>
		<tr>
			<td height="24">密&nbsp;&nbsp;码
				<input name="password" type="password" class="txt_grey" id="PWD"
					size="16"></td>
		</tr>
		<tr>
			<td height="31">&nbsp;<a href="register.lzw">注册</a>
				<input name="Submit2" type="submit" class="btn_grey"
					value="登录">
				<input name="Submit3" type="reset" class="btn_grey" value="重置">
				</td>
		</tr>
	</table>
	</c:if>
	<c:if test="${sessionScope.username!=null }">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="94%" height="31" align="center">
				${sessionScope.userTrueName }您好!<br>您现在可以购物了!</td>
		</tr>
		<tr>
			<td height="24" align="center">
				<input name="Submit22" type="button" class="btn_grey"
					value="修改资料"
					onClick="window.location.href='modifyMember.lzw';"></td>
		</tr>
		<tr>
			<td height="24" align="center">
				<input name="Submit32" type="button" class="btn_grey"
		value="退出登录" onClick="window.location.href='login.lzw?loginOut=true';">
		</td>
		</tr>
	</table>
	</c:if>
	</td>
</tr>
</table>
</form>
		</td>
	</tr>
</table>

⌨️ 快捷键说明

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