编写一个jsp程序,实现用户登陆,当用户键入的用户或密钥错误时,将页面重定向到错误提醒也,并在该页面显示30秒后 自动回

电脑杂谈  发布时间:2019-11-19 19:02:15  来源:网络整理

wifi密码正确提示错误_jsp中html文件404错误_jsp密码错误提示

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="panduan.jsp" method="post">
名称:<input type="text"  name="name">
<br>
密码:<input  type="password"  name="password">
<br>
<input type="submit" value="提交"> 
</form>
</body>
</html>

jsp密码错误提示_jsp中html文件404错误_wifi密码正确提示错误

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<% String name=request.getParameter("name");
String password=request.getParameter("password");
%>
<%if(name.equals("test1")&&password.equals("123456"))
    {
    out.print("密码正确");
    }
    else
    {
        response.sendRedirect("cuowu.jsp");
    }%>
</body>
</html>

jsp中html文件404错误_jsp密码错误提示_wifi密码正确提示错误

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
账号密码输入错误
</body>
</html>

技术分享

技术分享

技术分享

编写一个jsp程序,实现用户登陆,当用户键入的用户或密钥错误时jsp密码错误提示,将页面重定向到错误提醒也jsp密码错误提示,并在该页面显示30秒后 自动回到用户登录图标


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-130638-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...