hi everyone, i am new in jsp and i would like to have your advise to develop an online chatting application use jsp. i would like to know is it possible to develop chat application using jps and sockect or should i have to use websocket an do i need to use also servlet.

thanks in advance
regarding bogoreh

jsp's are compiled to servlets, so whether you manually code them or not, you'll be using servlets.

Do realize, that a jsp is nothing but the UI. the chatting itself is not (or better: should not) be processed/executed in your jsp, the jsp is just to illustrate the chat.

This should be a multi-layered (possibly with multiple modules) application, not a "let's cram all the code in the jsp file".
Yes, when working with jsp's while your application does have a certain business logic behind it: always use servlets.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.