Java Servlets

Differences between applets and servlets

Example: data retrival
An applet is better if a powerful user interface is necessary, that is, an html form is inadequate for getting the user's input.

While a servlet is better if the display of the output is more important. Of course both can be used.

Sun's Answer Book is a good example of dynamically generated web pages.

Simple Examples:

Something Different: Restricting Access to Subnets

The math department homepage has a link called Department Matters. If you access it from a machine in the math subnet you get one page but from outside you get another. Try it!

UH Manoa Math Dept

The sourse.

Documentation Links:

An dumb applet (Click for the answer)

If you were using a Java-enabled browser, you would see an animated scrolling text sign.