JSP are used only for HTTP connections which the servlet container controls.
There is no intersection between the world of JSP and the world of socket programming.
Joined: Feb 09, 2013
Thanks for the reply.
I am creating a chat application where users can communicate in group. So what is the way that more than 2 people would communicate. In short, I want to exchange information between two or more sessions. So what is the way to achieve it. thanks.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Since we are in a Servlets forum, I assume you want your clients to be using browsers. Questions about building chat systems with HTTP and browsers have come up frequently in this forum so do a search.
IF you are not talking browsers as clients, then a message service would be a reasonable core.
In general, before you write ANY code, make lots of diagrams showing how chat messages and chatting clients are handled - this should clarify what you need to program.