[nobr]Thank u very much for ur reply
may i know , how can we call the same page with different parameters
i will show u the code that i have applied, please reply
login.jsp
<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 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>
*******************
processing page
********************
<%@page import="java.sql.*" %>
<%@page import="java.io.*" %>
<%
String s1=request.getParameter("eid");
String s2=request.getParameter("ename");
%>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:empl");
PreparedStatement pr=con.prepareStatement("select ename from emp where eid=? AND ename=?");
pr.setString(1,s1);
pr.setString(2,s2);
ResultSet rs=pr.executeQuery();
if(rs.next())
{
%>
<jsp:forward page="empsess.jsp" />
<%
}
else
{
%>
<jsp:forward page="notvalid.jsp" />
<%
}
%>
[/nobr]