Pages

Showing posts with label Chat application in java. Show all posts
Showing posts with label Chat application in java. Show all posts

Saturday, 14 September 2013

Chat Application in Java


This article provides chat application in java which shows list of online users and allows individual chatting and group chatting.The intention of project is to give good idea about how to create server push application using servlet and jsp.

This web-based chat application in java uses below technologies :

1)Jsp and Servlet 3
2)Comet
3)Javascript and jQuery
4)Apache tomcat 7
5)Eclipse IDE

The chat application provides below features :
1)Showing list of online users
2)Group chat
3)Chatting with individual online user.

Note* Chat application source code may need refactoring if want to improve further.

Pre-Requisites to execute this project :
1)Eclipse IDE
2)Java 1.5 or above
3)Apache tomcat 7.

Follow below steps to execute chat application project :

1)Download project from link given at the end.
2)Extract project and import in eclipse.
3)Right click on project and select run on server option
4)Open multiple tabs in browser and paste below link in each tab
http://localhost:8080/BasicChatApplication/jsp/ChatWindow.jsp
5)Now login with different user and start chatting.

Note*: You can also test it on LAN for better testing.


Below are some screen shots of the application :

Login screen of chat application start page.

Chat Application in Java-Login Screen
Chat application in java : Login screen


Online user list after login :

Chat Application in java - Group chat
Chat Application in java - Online users 


Chatting with online user screens :
Chat Application in java - Chatting with other users
Chat Application in java - Chatting with other users


Group chat screen :
Chat Application in java - Group chat
Chat Application in java - Group chat

Click here to download chat application in java eclipse project

If you find this post useful. Please comment and share. Thanks :)