Requirement description

Realize the login and authentication function of enterprise mailbox

User through JSP Page enter user name and password

If the user name is lucky, Password is 123456, Display on the welcome page “ Hello :lucky!”

If the authentication login fails , Then return to the login page to log in again

 
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%> <!DOCTYPE html> <html> <head> <meta charset="utf-8">
<title> Mailbox login verification </title> </head> <body> <form action="process.jsp" method="post">
<table> <tr> <td align="right"> user name :</td> <td><input type="text" name="u_name"
/></td> </tr> <tr> <td align="right"> password :</td> <td><input type="password"
name="u_pswd" /></td> </tr> <tr> <td><input type="submit" value=" Submit " /></td>
</tr> </table> </form> </body> </html> <%@ page language="java"
contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <!DOCTYPE html>
<html> <head> <meta charset="utf-8"> <title> Validation processing page </title> </head> <body> <%
String name=request.getParameter("u_name"); String
pswd=request.getParameter("u_pswd"); if(name.equals("lucky") &&
pswd.equals("123456")){ out.print(" Hello ,"+name+"!");
request.getRequestDispatcher("success.jsp").forward(request, response); }else{
response.sendRedirect("Login.jsp"); } %> </body> </html> <%@ page
language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> Verification success page </title>
</head> <body> <h1> Verification successful !</h1> <h2> Hello , <% String
name=request.getParameter("u_name"); out.print(name); %> </h2> </body> </html>
 

Technology
©2019-2020 Toolsou All rights reserved,
mybatis-config.xml Set default value configuration Map---Java judge Map Contains a keypython read , write in txt Text content mybatis Return result mapping of series use mt-range The effect of changing a number with the sliding bar is realized Element-UI Implementation of secondary packaging TreeSelect Tree drop-down selection component Note 14 : The second biggest obstacle to motivating others in R & D management uboot set up nfs parameter ——linux kernel use nfs Mode to load the root file system rootfs( Six )( Essence )2020 year 8 month 13 day C# Basic knowledge windform Realize two color sphere Linux File name validity detection