• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

chat program

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am creating my own web site using jsp. i plan to add 'chat service' like mirc or icq into my web site. how can i create the 'chat'? is there any third party software that i can use?
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jil,

You can't do a chat application just using JSP... JSP just gets translated down to HTML, and the user has to use HTTP for communication. Basically that means the user has to make a request before the server can generate a response. This communication style isn't condusive to a chat application. To do a chat application you're going to need to embed an applet or some other component (ActiveX, etc.) in the page created by your JSP that can use a communication mechanism other than the request/response style of HTTP to perform the real-time communication needed for a chat application. There are lots of ways to do this, and I'm sure you can find many existing examples of chat applets just by searching google. If you want more information about developing your own chat applet, you could also ask about that specific topic in another forum that it better fits in - Applets, Distributed Java, or Sockets - depending on what you need help with.
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is possible to create a JSP (or PHP, Perl, whatever) based chat application if you use Javascript to refresh the page every second or so.
It's ugly but it works and allows people behind firewalls that pass only HTTP to access the application.
 
reply
    Bookmark Topic Watch Topic
  • New Topic