glassfish_at_javadesktop.org wrote:
>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
>
Let's start with the basics: )
Do you ever store the first and last name values in the session,
by calling the session's setAttribute() method?
The session's getAttribute() will return only what was stored using
setAttribute().
Jan
> 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
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>