You are on page 1of 2

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<style type="text/css">

</style>
</head>
<body style="background:
url('C:/Users/swapnilk/Documents/NetBeansProjects/HotelManagement/web/2.jpg');backg
round-size: cover;;background-repeat: no-repeat">
<form name="signup" action="">
<center>
<table border="6" style="width: 400px;height: 200px">

<thead>
<tr><th colspan="2"> <h1> Welcome Admin </h1>
</th></tr>
</thead>

<tr>
<td>
<p>E-mail id</p>
</td>
<td>
<input type="text" name="loginemail"
placeholder="emailid" required=""/>
</td>
</tr>
<tr>
<td>
<p>Password</p>
</td>
<td>
<input type="text" name="loginpassword"
placeholder="password" required=""/>
</td> </tr>
<tr>
<td colspan="2"> <input type="submit" name="Login"
value="Login" ></input> </td></tr>
</table>
</center>
</form>
</body>
<%
if(request.getParameter("Login")!=null)
{
String loginemail=request.getParameter("loginemail");
String loginpassword=request.getParameter("loginpassword");
if(loginemail.equals("admin")&& loginpassword.equals("admin"))
{
out.println("<h2>Matched Succesfully</h2>");
%>
<a
href="http://localhost:8084/HotelManagement/adminChoose.html">Click Here to Move to
perform Room Operations and Client details</a>
<%
}
}
%>

</html>

You might also like