Issue
I have the following problem: I'm using Struts 2 with AngularJS. Requesting data from Action Classes is no Problem. But what if I want to continuously stream data (JSONs) to the client-side?
So if there is new data available in the backend, it should be send to the frontend and automatically displayed there.
Any hint how to do that?
Solution
Use servlet API 3.0 or higher for the web application that allows to use websocket on the server-side. There you can define your endpoints that allow you continuously stream data (JSONs) to the client-side.
One point that Struts2 should be excluded from the service because it interfere with the API and doesn't support websockets.
Answered By - Roman C
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.