最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
简易成绩查询系统
时间:2022-07-02 17:58:14 编辑:袖梨 来源:一聚教程网
YPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.***w3.org/TR/REC-html40/loose.dtd">
YPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.***w3.org/TR/REC-html40/loose.dtd">
先建一个数据库(std.mdb):其中有两个表 1.pw(密码表) 2.score成绩表
然后建两个Jsp文件
enter.(登录页面,用来验正身份的)
-----------------------------------------------
请输入你的学号和密码
String error=request.getParameter("errortype");
if(error!=null)
{
int errortype;
errortype=Integer.parseInt(error);
switch(errortype)
{
case 1:out.println("请输入学号!");break;
case 2:out.println("请输入密码!");break;
case 3:out.println("搞错,没有此人!");break;
case 4:out.println("密码错误!");break;
default:
}
}
%>
result.jsp(执行查询结果)
--------------------------------------------
String num=request.getParameter("number");
String password=request.getParameter("password");
int errortype=0;
if(num.equals(""))
{
errortype=1;
response.sendRedirect("enter.jsp?errortype="+errortype);
相关文章
- volantmq:实践指南 09-10
- solo5:实践指南 09-10
- tailscale-synology:实践指南 09-10
- android-DecoView-charting:实践指南 09-10
- 三国天下归心兵种怎么处理-位置线索 09-10
- terminal.sexy:实践指南 09-10