Hello all, I am making an chat application, in which I am mainting the current login list to an array.. which is defined in Chatter.java. Now, I am invoking the addChatter() and getChatter() from that class to add and retrive the currently login user's list...
But when I login from another machine, while one is login it doesn't show me the all the list..i.e. 2 users. It shows only the last user that has been login . One of my friend says that it's an scope problem that u have to make it as whole application scope..that anyone can use that array.. without it is being initilized.. and for that you have to store that array somewhere in
servlet context..
But I don't know that how to store and retrive the
string array and its element from servlet context()..
So, please help me regarding the same....
Regards,
Siddharth