Originally posted by Raghu ram:
from this code we will get username attribute. So to use this attribute in another servlet what should i do.
Nothing much. Once you say, setAttribute, it sets the attribute in the particular session on the Server.
In any other servlet or
jsp, you can get access to the session first and then from the session, you can get the attribute by making use of "getAttribute()".