String username = request.getParameter("username");
String password = request.getParameter("password");
out.println("Checking login
");
if (username == null
password == null) {
out.print("Invalid paramters ");
}
// Here you put the check on the username and password
if (username.toLowerCase().trim().equals("admin") && password.toLowerCase().trim().equals("admin")) {
out.println("Welcome " + username + " Back to main");
session.setAttribute("username", username);
}
else
{
out.println("Invalid username and password");
}
I Tried 30+ Python Courses and Certifications on Coursera - Here Are My Top
5 Recommendations for 2027
-
Hello guys, if you want to learn about Python programming and looking for
best online courses to learn Python then you have come to the right place.
In t...
4 hours ago
No comments:
Post a Comment
I'm certainly not an expert, but I'll try my hardest to explain what I do know and research what I don't know.