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.

  < >
<title>Insert title here</title>
<body background="image/s5.jpg">
<h1 style="font-family:Comic Sans Ms; text-align:center; font-size:20pt; background-color:#00FF00">
ADMIN Login Page
<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"/>
<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")
{'ehome.jsp')/*opens the target page while Id & password matches*/
alert("Error Password or Username")/*displays error message*/
/* login for authenticate user*/


Our Services:

Java Training | Python Training | Machine Learning with Python Training | Deep Learning with Python Training | Data Science with Python Training | Projects

SILAN Technology, BBSR
Call to: 0674-2361252