Home > OS >  Websocket Connection is not working with Struts2
Websocket Connection is not working with Struts2

Time:04-11

I have taken example from enter image description here

Tried many solutions from stackoverflow as well but nothing work yet.

CodePudding user response:

You are missing web application context path in the URL.

ws://localhost:8080/[CONTEXT_NAME]/websocket

Sometimes context name and project name are the same.

EXAMPLE:

ws://localhost:8080/web_socket_struts2_test/websocket
  • Related