When i will click on online trading button(By selecting the particular person who is online and with whom i want to do chat) it should open a chat window.
I am using servlet, jsp, RMI and swing (Swing as chat window). How should i call that chat window from browser ? which way will be more appropriate ? please guide me.
How should i call that chat window from browser ?
I am assuming that the chat window is a separate Java application, not an applet managed by the browser.
In that case the simplest thing would be to have the server relay messages between the browser and chat window. How does the chat window "talk" to the client on the other end of the chat?
Welcome to JavaRanch!
In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
"Hello Friends", while friendly, tell us nothing about the nature of your question.
Again, welcome to JavaRanch and good luck with your question.
Originally posted by saikrishna cinux:
when you click on online trading button in the jsp page uou just activate the servlet which again invokes your swing (application)
for this there are many ways to open other applications from a java program
by using this ocde you can solve it
Once this code fires up a swing app on the server, how is the user (sitting at the client machine) supposed to use it?
[ September 21, 2006: Message edited by: Ben Souther ]
it opens at server side
actually the code i have provided in the above thread is not correct
and even this code which i am providing here for normal programs (console)
it is working fine
but in webapplications it is not working
can anyone tell me why it is not running i have also place one swing application called Calculator in the current directory(where the servlet is placed)
should i need to give the absolute path???
thanks in advance