简体   繁体   中英

Streaming HTML from Java web application

How to achieve continuous HTML streaming in a Java web application?

Like, making the page keep on loading (indicates) and push data from server.

Using ajax you can call the server continuously and continue to refresh parts of the page.

Obviously you would be better using timeouts and not continuously.

根据您是要进行内容替换(多部分/替换)还是进行彗星样式推送,您可以查看http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartResponse.html (进行多部分替换:某些IP摄像机使用类似的技术来制作原始视频),或者查看诸如http://tomcat.apache.org/tomcat-6.0-doc/aio.htmlhttp://blogs.oracle.com/用于彗星流传输的enterprisetechtips / entry / asynchronous_support_in_servlet_3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM