Pushlet Mechanism Basics

These show some examples of how to get to the basics of pushlets. Each example has a description a link to run it and links to the related source files.

HTML Push Here we just contiously push HTML from a JSP in a loop with a sleep() interval. Notice that the HTML is just appended. This is mainly annoying ;-). run push-html-stream.jsp
JavaScript Push Here we take it a bit further. This forms the basis of pushlets. The example page consists of a parent window with two frames, a JSP frame that is hidden and a display frame. The JSP pushes lines of JavaScript into the hidden frame. These are executed within the parent frame. The parent frame writes the content into the display frame. run push-js-stream.html