📄 lookup.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<script language="JavaScript">
function checkit()
{
var id = document.form1.id.value;
var name = document.form1.name.value;
if(id.length==0){
alert(" 请输入学号:8位数字 " );
document.form1.action="";
}
if(name.length==0){
alert( " 请输入姓名 " );
document.form1.action="";
}
}
</script>
<html>
<head>
<title>lookupPage</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<br><br><br><br><br><br><br><br>
<form action="newList.jsp?ToPage=<%=1%>" method="post" name="form1" onSubmit = "checkit()">
<p align="center">页号:
<input name="bookID" type="text" id="id">
</p>
<p align="center"> </p>
<p align="center">书名:
<input name="bookName" type="text" id="name">
</p>
<p align="center"> </p>
<p align="center">作者:
<input name="bookName" type="text" id="name">
</p>
<p align="center"> </p>
<p align="center">
<input name="Submit" type="submit" value="查询">
<input type="reset" name="Submit2" value="重置">
</p>
<%
String logName="good";
session.setAttribute("logName",logName);
%>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -