C:/Users/kanoo/OneDrive/Documents/NetBeansProjects/prac6c/web/login.
jsp
<%--
Document : login
Created on : 11 Feb, 2025, [Link] PM
Author : kanoo
--%>
<%@page contentType="text/html"%>
<%@page import="[Link].*" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
try
{
[Link]("[Link]");
Connection
con=[Link]("jdbc:derby://localhost:1527/2804","root","
root");
String uname=[Link]("uname");
String pwd=[Link]("pwd");
PreparedStatement pst=[Link]("Select password
from registration where username='"+uname+"'");
ResultSet rs=[Link]();
if([Link]())
{
if([Link](1).equals(pwd))
{
%>
<%@include file="[Link]" %>
<%
}
else
{
%>
<h1>LOGIN FAILED</h1>
<%@include file="[Link]" %>
<%
}
}
else
{
%>
<%="User doesn't Exists"%>
<%@include file="[Link]"%>
<%
}
}catch(Exception e)
{
[Link](e);
}
%>
</body>
</html>
1.1 of 1 2025.02.11 [Link]