Hi Nancy,
I have given a sample code for validating and storing values in session.
<%
String login = request.getParameter("login");
String passwd = request.getParameter("passwd");
try
{
if(cl_connection.validate(login,passwd)==true)
{
session.putValue("Login",login);
response.sendRedirect("http://..../somepage.jsp");
}
else
{
response.sendRedirect("http://.../login.jsp);
}
}
catch(Exception e)
{
out.println("Exception :"+e.toString());
}
%>
In subsequent pages just use
String str_Login =(String)session.getValue("Login");
to retrieve the Login.
U can put as many values in session which can be available throughout the user session.
When the user logs off use session.invalidate();
to clear all the values from the session.
Hope this solves ur problem.
"
Life is too Wonderful to be Spent worrying"