| Author |
Hello Friends
|
Pratik Surti
Greenhorn
Joined: Sep 16, 2006
Posts: 21
|
|
My project is for online trading, in which registerd customer can discuss trading, pricing on chat. 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. regards pratik
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12266
|
|
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? Bill
|
Java Resources at www.wbrogden.com
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Pratik Surti, 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: UseAMeaningfulSubjectLine "Hello Friends", while friendly, tell us nothing about the nature of your question. Again, welcome to JavaRanch and good luck with your question. -Ben
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Pratik Surti
Greenhorn
Joined: Sep 16, 2006
Posts: 21
|
|
|
Browser displays the link to open the chat window to chat with that particular person. I want to know that How I can call the chat window means the Swing from my JSP page.
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
You would have to implement your swing app as either an applet or a Java Web Start application. We have forums for both of those technologies here.
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
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 regards saikrishna
|
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
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 regards saikrishna
And... 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 ]
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
yes you are right... 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
|
 |
 |
|
|
subject: Hello Friends
|
|
|