17.4. A Query Viewer That Uses Object Serialization and HTTP Tunneling

Many people are curious about what types of queries are sent to the major search engines. This is partly idle curiosity (“Is it really true that 64 percent of the queries at AltaVista are from employers looking for programmers that know Java technology?”) and partly so that HTML authors can arrange their page content to fit the types of queries normally submitted, hoping to improve their site's ranking with the search engines.

This section presents an applet/servlet combination that displays the fictitious super-search-engine.com “live,” continually updating sample queries to visitors that load their query viewer page. Listing 17.4 shows the main applet, which makes use of ...

Get Core Servlets and JavaServer Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.