Java Reference
In-Depth Information
Two HTML pages lead to the servlet. The contestant's page simply has a large link ( <a
href=/servlet/BuzzInServlet> ). Anchor links generate an HTML GET, so the servlet en-
gine calls doGet() :
<html><head><title>Buzz In!</title></head>
<body>
<h1>Buzz In!</h1>
<p>
<font size=+6>
<a href="servlet/BuzzInServlet">
Press here to buzz in!
</a>
</font>
The HTML is pretty plain, but it does the job. Figure 22-3 shows the look and feel.
Search WWH ::




Custom Search