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

📄 logon.jsp

📁 java电子相册一般网页里面实现图片切换的这个电子相册的代码
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" language="java" %>

<%@ 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" %>

<%
    String contextPath = request.getContextPath();
%>
<html:html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GBK">
<title>欢迎来到电子相册系统</title>
<link href="<%=contextPath%>/css/style.css" rel="stylesheet" type="text/css">
<script language="javaScript" type="text/javascript">
<!--
function check1() {
	if(event.keyCode == 13){
		check();
	}
}

function check() {
	if (document.logonForm.userName.value == "") {
		alert("请输入用户名");
		return ;
	} else if (document.logonForm.password.value =="") {
		alert("请输入密码");
		return ;
	} else {
		document.logonForm.actionType.value = "logon";
		document.logonForm.submit();
	}
}

function newUser(){
    window.location="<%=contextPath%>/login/regist.do?actionType=init";
}
-->
</script>
</head>

<body class="othercolor">
<marquee behavior=alternate><font size="6" align=center>欢迎来到我们的电子相册系统<br>很精彩</font></marquee>
<jsp:useBean id="logonForm" class="cn.edu.seu.album.web.LogonForm" scope="request"/>
<html:form action="/logon">
<html:hidden property="actionType" name="logonForm"/>
<center>
<table align=center width="600">
  <tr>
    <td width="185">&nbsp;</td><td>
    <table>
<html:errors/></table></td><td width="170">&nbsp;</td></tr>
</table>
</center>
<table align=center cellspacing="0">

	<tr>
	<td rowspan=4 align="center">
		<img height="160" width="200" src="<%=contextPath%>/picture?id=welcome/sports.jpg"/><br>
		体育</td>
	<td rowspan=4 width=150></td>
	<td align=right><font size="3">
		用户名</font>&nbsp;</td>
	<td >
		<html:text property="userName" maxlength="15" style="width:150" onkeydown="check1();"/></td>
	<td rowspan=4 width=150></td>
	<td rowspan=4 align="center"> 
		<img height="160" width="200" src="<%=contextPath%>/picture?id=welcome/news.jpg"/><br>
		新闻</td>
	</tr>

	<tr>
	<td align=right><font size="3">密&nbsp;&nbsp;码</font>&nbsp;</td>
	<td>
	<html:password property="password" style="width:150" maxlength="15" redisplay="false" onkeydown="check1();"/></td>
	</tr>

	<tr>
	<td colspan=2 align=center>
	<html:button onclick="check();" property="submitButton">
		登录
	</html:button></td>
	</tr>
	<tr>
	<td  colspan=2 align=center>
	<html:button onclick="newUser();" property="newUserButton">
	新用户注册
	</html:button>
	</td>
	
	</tr>
	<tr height=30>
	<td colspan=6 >&nbsp;</td>
	</tr>

	<tr>
	<td rowspan=4 align="center">
		<img height="160" width="200" src="<%=contextPath%>/picture?id=welcome/people.jpg"/>
		<br>人</td>
	<td rowspan=4 colspan=4 align="center">
		<img height="160" width="200" src="<%=contextPath%>/picture?id=welcome/view.jpg"/>
		<br>风景</td>
	<td rowspan=4 align="center">
		<img height="160" width="200" src="<%=contextPath%>/picture?id=welcome/science.jpg"/>
		<br>科学</td>
	</tr>
</table>
</html:form>

</body>
</html:html>

⌨️ 快捷键说明

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