Java Reference
In-Depth Information
<p>
<p>
<b>
<b> Remember to RESET before you ask the contestants each question! </b>
</b>
<form
<form method= "post" action= "servlet/BuzzInServlet" >
<input
<input type= "hidden" name= "command" value= "reset" >
<input
<input type= "hidden" name= "password" value= "syzzy" >
<input
<input type= "submit" name= "Reset" value= "RESET!" >
</form>
</form>
The game show host functionality is shown in Figure 22-4 .
Figure 22-4. BuzzInServlet game show host function
For a more complete game, of course, the servlet would keep a Stack (see Stack ) of people
in the order they buzzed in, in case the first person doesn't answer the question correctly. Ac-
cess to this would have to be synchronized, too.
Search WWH ::




Custom Search