Nandini,
I think the reason might be when you try to use session.getAttribute( "theName" )to display the value. You have to cast it to a String, because seesion.getAttribute returns a Object not a String. Even the toString() inside the object will not return a value for the object, it will only return a reference to it which is null. That's why you get a null value. Try to do this (String)session.getAttribute. It will work. If I am wrong, please let me know. By the way, the default value of session is set to true for JSP page.
Regards,
Paul
[ February 19, 2004: Message edited by: Paul Yen ]
[ February 19, 2004: Message edited by: Paul Yen ]