how to use J_security_check in my login page
[nobr]Dear everyone,
how to use j_security_check in my login page ...
can anyone please give ur suggestions...
i will show you my code...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript">
function check()
{
var uid=document.loginpage.eid.value;
var uname=document.loginpage.ename.value;
if(uid =="")
{
alert("\n Please fill in the Login ID filed!");
returnfalse;
}
elseif(uname =="")
{
alert("\n Please fill in the Login name field!");
returnfalse;
}
returntrue;
}
</script>
</head>
<body> <font color="Mauve" face="verdana">
<form method="post" name="loginpage" action="emplogin.jsp" onSubmit=" return check()"
><center><h4><u> Employee Assessment Application</u></h4></center>
<br>
<br>
<table bgcolor="#c8d8f8" width="362" border="1" align="center">
<tr>
<td width="457" height="182">
<table width="352" border="0">
<tr>
<td colspan="2">
<div align="center"><strong>Employee Login</strong></div></td>
<br>
</tr>
<tr>
<td width="168" height="31"><div align="right">Login Id : </div></td>
<td width="174"><input type="text" name="eid"></td>
</tr>
<tr>
<td width="168" height="31"><div align="right">Login Name : </div></td>
<td width="174"><input type="text" name="ename"></td>
</tr>
<tr>
<td height="63" colspan="2"><div align="center">
<input type="submit" name="Ok" value=" Submit"" >
<input type="reset" name="Reset" value="Reset" >
</div></td>
</tr>
</table></td>
</tr>
</table>
<li><a href="main1.jsp"><h4>Home Page<h4></a>
</form>
</body>
</html>
[/nobr]

