Oracle GlassFish Server 3.0.1 Application Development Guide

ProcedureTo Create the HTML Page That Allows Submitting Updates

  1. Create an HTML page called button.html and add the following content to it:

    				<form method="post" action="hidden_comet">
    					<input type="submit" value="Click">

    This page displays a form with a button that allows a user to update the count on the server. The servlet will then broadcast the updated count to all clients.