❮ Previous Next ❯

ADMIN-LOGIN Form

Hi frnds, here I am going to represent a ADMIN-LOGIN form in JSP without process logic and it works for JavaScript in JSP file.
Required Files:

  1. index.jsp

Example of DatePicker Form in JSP

In this example, we are using the HTML5,JavaScript and jquery.

  < >
<html>
<head>
<title>Insert title here</title>
</head>
<body background="image/s5.jpg">
<h1 style="font-family:Comic Sans Ms; text-align:center; font-size:20pt; background-color:#00FF00">
ADMIN Login Page
</h1>
<center>
<form name="login">
Username<input type="text" name="userid"/><br>
Password<input type="password" name="pswrd"/><br>
<input type="button" onclick="check(this.form)" value="Login"/><br>
<input type="reset" value="Cancel"/>
</center>
</form>
<script language="javascript">
function check(form)/*function to check userid & password*/
{
/*the following code checkes whether the entered userid and password are matching*/
if(form.userid.value == "satya" && form.pswrd.value == "satya12")
{
window.open('ehome.jsp')/*opens the target page while Id & password matches*/
}
else
{
alert("Error Password or Username")/*displays error message*/
/* login for authenticate user*/
}
}
</script>
</body>
</html>

index.jsp


esr

❮ Previous Next ❯

Follow Us




  Tutorials

Popular Links

Contact Us

address Plot No-741,2ND Floor
Opp. Bhagabati Temple,Jayadev Vihar
      Bhubaneswar-751013
      Email: info@silantechnology.com
      Phone: 0674-2361252
address
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved