Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using socket and JSP for chatting  RSS feed

 
Abhishek Solanki
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to JSP !! and I'm developing a web-based chatting system using JSP and socket.

The problem i am facing is that the sender can send message but on the receiver side we have to manually refresh the page. The sender stays into blocking mode until the receiver refresh its page !
after that i've implemented auto-refresh on the receiver side and "Connection Refused" exception is generated.
I know this technique is not optimal , so please guide me regarding this matter.

Thanks !

 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see how JSPs would be involved in a chat application, except maybe for creating the static web page that does some JavaScript stuff for shuffling messages back and forth to the server. Having to refresh it sounds definitely like the wrong approach. Can you describe for us the overall architecture?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!