Session ,You can assume to be, a cookie of sorts on the server. So when you login, just type the following in your code
<% session.setAttribute("someString",yourParameter); %>
The above statement pushes your object to the session or rather associates a reference of your object to the session.
The general form of the setAttribute is "session.setAttribute(String,Object).
Try this.
Ya lara,
You can use a out.println after getting a reference to the object in the session. suppose, you have associated your login-id with the session using session.setAttribute("loginId",loginId);
Then in the following jsps or servlets you can use the following statement to get a reference to loginId
String loginId = (String)session.getAttribute("loginId");
then you can use out.println(loginId) to print the loginId or have an appropriate use for it according to your necessity.