dcsimg
A query regarding appending the names to the textarea simultaneously
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   jignesh_gohel
Posted On:   Friday, April 8, 2005 07:59 AM

Hello, I've designed two windows as standalone applications in swing for the client-side & a servlet for the server side.The first window is named as Login window & second as MainWindow. Now when the user logins using my Loginwindow the user gets authenticated through my Loginservlet .If the required parameters for authentication are successfully verified then my Mainwindow code is called from the Login window. The connection between Login window & LoginServlet is done using HttpTunneling. My Mainwindow consists of a textarea. I want to display the names of users currently logged in that textarea. I've made a jar for this whole thing nam   More>>

Hello,



I've designed two windows as standalone applications in swing for the client-side & a servlet for the server side.The first window is named as Login window & second as MainWindow.



Now when the user logins using my Loginwindow the user gets authenticated through my Loginservlet .If the required parameters for authentication are successfully verified then my Mainwindow code is called from the Login window.




The connection between Login window & LoginServlet is done using HttpTunneling.



My Mainwindow consists of a textarea. I want to display the names of users currently logged in that textarea.


I've made a jar for this whole thing named as login .jar.


In my first approach when only one single user logs in then I'm able to print his name in the textarea.But,when some other user executes this jar from another command prompt(for e.g) & logs in then only the second users name gets displayed in the textarea .



In my second approach when all the users logins using the same login window
when first time the jar was called & was never exited(the jar) then all the users currently logged in are visible in the textarea.


In my first case i'used a simple array while in my second case i used a static counter for my array in my separate plain java class which i made for adding the users name in the array .



But what i need is that when different- different users logs in from their individual machines using their own individual login window then also each user should be able to see the names of the users currently logged in, in their own Mainwindows'.


So how to approach for the above mentioned thing .

Thanking you,
Jignesh

   <<Less
About | Sitemap | Contact