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]

[3934 byte] By [senthil_yogaa] at [2007-11-27 7:57:47]
# 1

<script language="javascript">

function validate()

{

if (document.form1.username.value == "" )

{

alert("Enter user name");

username.focus();

return false;

}

if (document.form1.password.value == "" )

{

alert("Enter password");

password.focus();

return false;

}

return true;

}

</script>

<form method="post" action="" name="form1">

User Name: <input type="text" name="username" value="">

Password :<input type="text" name ="password" value="">

<input type="submit" value="submit" onClick=" return validate();">

kannankallia at 2007-7-12 19:39:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Dear everyone,how can we implement Form Based authentication ie Jsecuritycheck in Netbeans 5.5please give ur suggestions.............
senthil_yogaa at 2007-7-12 19:39:41 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...