Custom Java or JSP Site

Warning! This documentation is outdated. Please refer to our new documentation at docs.cometchat.com.

The installation instructions are the same as that of Custom PHP Site. However, before proceeding to them, please make sure that you have configured your server.

No modifications are required to your existing Java or JSP site code.

Code Modification

The only modification that needs to be performed in your existing code is to add a cookie like userid when the user logs in and reset it to 0 when the user logs out. Then CometChat can use this cookie to read the logged in user’s ID.