SearchToHTML



Try a search on "black cat".

The SearchToHTML applet provides your visitors with a simple way to search your Web site. Search results are displayed in HTML. Using HTML provides your visitors with a familiar interface and provides you with greater control over the display of the search results. Other features of the applet include picking out the closest anchor to a match and displaying the context surrounding a match.

This update uses HTML both for the search form and for the display of results, increasing the flexibility of the interface. It also adds support for multibyte encodings and for returning multiple matches per page.

It was compiled under JDK 1.4 but should run under 1.1. It was compiled against the JDK 1.1 classes targeting the 1.1 VM.

Author's Notes:
This release adds the option of having the applet display a checkbox for users to choose whether the applet does AND or OR searches. It fixes a bug related to doing AND searches and adds a couple of variables to searchresults.html to allow for more control of the display of the search results. And the documentation has been cleaned up somewhat.

How To Use:

  • Download SearchToHTML.zip (158 KB)
  • Unzip with a compression utility.

    Java Source: Available in zip file.

    Sample HTML Source:

    <applet code="SearchToHTML"
    	width="350"
    	height="100">
    
      <param name="files"
      	value="stuff/rhyming_words.txt,stuff/
    		muckraker.html,
    		frames.html,
    		paramex.html,
    		minimalist.html">
      	<param name="target" value="main">
    
    </applet>
    
    

    Configuration: Extensive configuration instructions in the zip file. Read the ReadMe!

    Status: Free

    Author: David Faden

    Homepage: http://www.geocities.com/gilbertnews/

    Upload Date: June 15, 1999

    Updated: September 08, 2004

    How to Add Java Applets to Your Site

    New on the Java Boutique:

    New Review:

    Time Management Made Easy with the Quartz Enterprise Job Scheduler
    Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

    New Applet:

    Reverse Complement
    Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

    Elsewhere on internet.com:

    WebDeveloper Java
    Lots of Java information on webdeveloper.com

    WDVL Java
    Thorough Java resource at the Web Developer's Virtual Library.

    ScriptSearch Java
    Hundreds of free Java code files to download.

    jGuru: Your View of the Java Universe
    Customizable portal with online training, FAQs, regular news updates, and tutorials.