I have customerlogin page (has username and password) and that linked to customerservice page and this one linked to change profile page(contains change password, change name, change phone no.) So using session attribute how to set that username so that in change profile page i want to get that username. Reply soon
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()".