users@glassfish.java.net

Servlets: session tracking

From: <glassfish_at_javadesktop.org>
Date: Fri, 25 May 2007 07:55:19 PDT

hi
i am a newbie to j2ee. i am currently learning about session tracking in Servlets. i have written a simple program. this is what its supposed to do:
i have a simple servlet called FirstNameSessionServlet
this has a text input box called first name and submit button

this will go to another servlet called lastname
here the first name is shown
and here also another text input box has been provided along with a submit button

this will go to another servlet were both first and last name will be shown

my problem is that all the servlets are showing... but where ever i have put getAttribute() method and i am trying to print it its showing as null. i can't understand the use of getAttribute(); Can anybody please tell my why getAttribute(); is returning null when i am trying to access the firstname variable through this method. what am i doing wrong? i am loosing sleep over this. please please please help me!!!
i can mail u the sourcecode

shankha
yahoo chat id :njoy5k
gtalk id: shankhasanyal_at_gmail.com
[Message sent by forum member 'ssanyal' (ssanyal)]

http://forums.java.net/jive/thread.jspa?messageID=218937