You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**It provides client application which runs on the users’ desktop and server application which runs on any machine on the network. To start chatting our client should get connected to a server where they can do private chatting with registered users.**
26
26
27
27
28
-
## Software requirements of the project
28
+
## Software requirements of the project:rainbow:
29
29
Windows & Higher version (32/64-bit) license copies as per requirement
30
30
Tomcat9 Server
31
31
JDBC connectivity
32
32
33
33
34
-
## Implementation Languages used to develop the project
35
-
- Java
36
-
- HTML
37
-
- CSS
38
-
- JavaScript
39
-
- Not using AJAX | Socket Programming here, but use Seprate two Frames.
34
+
## Implementation Languages used to develop the project:snowman_with_snow:
35
+
- Java:comet:
36
+
- HTML:comet:
37
+
- CSS:comet:
38
+
- JavaScript:comet:
39
+
- Not using AJAX | Socket Programming here, but use Seprate two Frames.:umbrella:
40
40
41
41
42
-
## Database
42
+
## Database:blossom::blossom:
43
43
The total number of tables in the database that was identified to build our system is 2.
44
44
1. CHATAPP_LOGIN
45
45
- This Table have several coulumns and this helps to **Login | Register | List all user **
@@ -56,28 +56,29 @@ The total number of tables in the database that was identified to build our syst
56
56
- REFERENCES CHATAPP_LOGIN ("EMAIL") ON DELETE CASCADE
57
57
58
58
59
-
## Backend
59
+
## Backend:surfing_woman:
60
60
**JDBC**: JDBC stands for Java Database Connectivity. It is a part of JavaSE (Java Standard Edition). JDBC API uses JDBC drivers to connect with the database.
61
61
62
-
## JSP & Servlets:
62
+
63
+
## JSP & Servlets: :parrot:
63
64
- Java Server Pages (JSP) is a server-side technology that allows development of Web-based applications.
64
65
65
66
- JSP stands for Java Server Page. It is used to create a web application just like Servlet technology. We can think of JSP as an extension to Servlet because it provides more functionality than servlets such as expression language, JSTL, etc.
66
67
67
68
68
69
69
70
70
-
## Frontend
71
-
###### HTML (HyperText Markup Language)
71
+
## Frontend:basketball_man:
72
+
###### HTML (HyperText Markup Language):monkey:
72
73
73
74
- HTML stands for HyperText Markup Language and it is a standard markup language for creating Web pages. It describes the structure of Web pages.
74
75
75
-
###### CSS (Cascading Style Sheets)
76
+
###### CSS (Cascading Style Sheets):monkey:
76
77
77
78
- CSS is a language that describes the style of an HTML document. It describes how HTML elements should be displayed.
78
79
79
80
80
-
## web.xml
81
+
## web.xml:elephant:
81
82
* Here i use web.xml configuration file as my Properties file.
82
83
- Because we can't use direct Properties file in our webapplication as per my knowledge But it is possible in Standalone java applications
83
84
- using **java.util.Properties** which helps to read properies file value because it is subclass of hashtabe so it contains keys and values pair
@@ -89,46 +90,46 @@ The total number of tables in the database that was identified to build our syst
89
90
- Reusability
90
91
91
92
92
-
## Servlets used in the project
93
+
## Servlets used in the project:parrot:
93
94
* Servlets used in the project 5
94
-
1. LoginServlet.java
95
+
1. LoginServlet.java :feet:
95
96
- This servlet is use to handel Login related request and provide Non-techencal guidence to user to handel next steps.
96
97
- This uses a helper class "com.nt.dao package" where login SQL Queries and Database connection logics exsist.
97
98
- The - LoginServlet - is **Lode-on-startup=0** Servlet which contain init() method with user defined code
98
99
- This code is a logic for giving **Servlet-Context** object to that helper class
99
100
- becuse helper classs is using driver class name, url, pwd, and SQL Queries from **web.xml** configuration file with the help of getInitparameter() method
100
101
- of ServeltContext object
101
102
102
-
2. RegisterServlet.java
103
+
2. RegisterServlet.java:feet:
103
104
- This servlet is use to handel register request comming to server and provide Non-techencal guidence to user to guide for next steps..
104
105
- It also uses that same helper class which contains logic to register user into Database
105
106
- That helper class also take query and JDBC properties form web.xml using ServletContext obj which is provided by **LoginServlet.java** on Load-on-startup init() method.
106
107
107
-
3. ListAllRegisteredUserServlet.java
108
+
3. ListAllRegisteredUserServlet.java:feet:
108
109
- This servlet get request and sends all user who are registered (except that user who requested for List of registered user) in webApplication as response
109
110
- It not take any help of helper class but it self contains logic to connect DataBase and perform SQL operations
110
111
- It take JDBC properties and SQL query for select all users from database with the help of **ServletContext** object and **web.xml** configuration file
111
112
112
-
4. ShowSavedChatServlet.java
113
+
4. ShowSavedChatServlet.java:feet:
113
114
- This servlet get request and sends all private Chat messages as a responce of perticular user.
114
115
- It not take any help of helper class but it self contains logic to connect DataBase and perform SQL operations
115
116
- It take JDBC properties and SQL query for select all users from database with the help of **ServletContext** object and **web.xml** configuration file
116
117
117
-
5. StoreChatServlet.java
118
+
5. StoreChatServlet.java:feet:
118
119
- This servlet helps to store private chat into database.
119
120
- It not take any help of helper class but it self contains logic to connect DataBase and perform SQL operations
120
121
- It take JDBC properties and SQL query for select all users from database with the help of **ServletContext** object and **web.xml** configuration file
121
122
122
123
123
-
## Helper class
124
-
1. com.nt.util
124
+
## Helper class :eagle:
125
+
1. com.nt.util:dolphin:
125
126
- SqlQuerySupplier.java
126
127
- This class is help Login(LoginServlet.java) | Register(RegisterServlet.java) Servlet.
127
128
- It takes Servlet Context object with help of init() method of Login(LoginServlet.java) servlet and,
128
129
- Store that Object into Static Refrence Variable of ServletContext Type
129
130
- Using this ServletContext object this class get all properties of JDBC and SQL queries from web.xml and,
130
131
- This class have a getQuery(String purpose) method which returns SQL query as String to caller
131
-
2. com.nt.dao
132
+
2. com.nt.dao:dolphin:
132
133
- ChatAppLoginDAO.java (Data Access Object)
133
134
- Basically this class is develop with feeling as Spring bean class which useful for perform persistent logic
134
135
- but that need injuctions and injuction will happens with IOC container but i'm develop this application without Spring Framework so there is no IOC container
@@ -141,15 +142,15 @@ The total number of tables in the database that was identified to build our syst
141
142
- finally ChatAppLoginDAO class get JDBC propertes using ServletContext object Or we can supply properties manually and,
142
143
- SqlQuerySupplier class give query to perform Operations to ChatAppLoginDAO class
143
144
144
-
## JSP Files (JAVA SERVER PAGES)
145
-
- welcomePage.jsp
146
-
- loginUserMsg.jsp
147
-
- registerUserMsg.jsp
148
-
- userDashboard.jsp
149
-
- userLogOut.jsp
150
-
- chatWindowMain.jsp
151
-
- messagesScreen.jsp
145
+
## JSP Files (JAVA SERVER PAGES):construction:
146
+
- welcomePage.jsp:watermelon:
147
+
- loginUserMsg.jsp:lemon:
148
+
- registerUserMsg.jsp:pineapple:
149
+
- userDashboard.jsp:strawberry:
150
+
- userLogOut.jsp:green_apple:
151
+
- chatWindowMain.jsp:grapes:
152
+
- messagesScreen.jsp:orange:
152
153
153
154
154
-
## Conclusion
155
+
## Conclusion:tokyo_tower:
155
156
This project is a chat application where you can chat with registerd friends. You will have to ensure that the tomcat9 server and the apache server are connected and they both should be open while running the project. This project covers many important fundamental aspect of Java language form OOPs concepts to the web development concepts.
0 commit comments