
How can we register the variables into a session?

Hi
If u maintain the data along with the many request ,then we need to maintain the session. if u want to maintain the session,first u can create session given below
HttpSessio session=ServletContext.getSession();
if u want to put the data in session,Then
session.setAttribute("key","value");//here key and values are same
if u want to get the data from session,then
session.getAttribute("key");
Like that u can maintain the session
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.