Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hello Friends

 
Pratik Surti
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pratik Surti
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic