passlogin.jsp
来自「一个jsp写的bbs」· JSP 代码 · 共 57 行
JSP
57 行
<%@ page contentType="text/html; charset=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-logic.tld" prefix="logic" %>
<%@taglib uri="/WEB-INF/bbscs.tld" prefix="bbscs"%>
<jsp:useBean id="actionUrl" scope="request" type="java.lang.String"/>
<jsp:useBean id="tourl" scope="request" type="java.lang.String"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><bbscs:webinfo type="forumname"/> - 用户登录<bbscs:webinfo type="poweredby"/></title>
<link href="css/css1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p> </p>
<form name="loginForm" id="loginForm" method="post" action="<%=actionUrl%>" target="_top">
<input name="tourl" type="hidden" value="<%=tourl%>" />
<table width="400" border="0" align="center" cellpadding="10" cellspacing="0" class="table1">
<tr>
<td><table width="70%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td colspan="2"><strong>用户登录:请输入您的帐号和密码</strong></td>
</tr>
<tr>
<td width="34%"><div align="right">帐号:</div></td>
<td width="66%"><input name="username" type="text" class="input2" size="15" maxlength="20" /></td>
</tr>
<tr>
<td><div align="right">密码:</div></td>
<td><input name="passwd" type="password" class="input2" size="15" maxlength="20" /></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<html:submit styleClass="button1">登录</html:submit>
<html:reset styleClass="button1">重置</html:reset>
</div></td>
</tr>
</table></td>
</tr>
</table>
</form>
<p> </p>
<div align="center">
[<html:link action="/reg">注册用户</html:link>]
<logic:equal value="true" name="URR" scope="request">
[<a href="main.html" target="_top">游客参观</a>]
</logic:equal>
<logic:notEqual value="true" name="URR" scope="request">
[<html:link action="/main" target="_top">游客参观</html:link>]
</logic:notEqual>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?