Example on using Servlets/HTML pages

The following links will bring you to different HTML pages:

Tomcat logo Tomcat Info (on page info/page1.html)

IIS logo IIS Info (on page info/page2.html)

Zope logo Zope Info (on page info/page3.html)



To randomly access one out of the target pages linked above, click HERE

In this case, the relative URL random/ is mapped onto the Servlet named "mypick",
whose relative class is myservlets.RandomPick (see the configuration file web.xml).
Such a servlet chooses a random page to forward the http request to.

To randomly access one out of the target pages linked above, with no subsequent repetition: click HERE

In this case, the relative URL randomplus/ is mapped onto the Servlet named "mypickplus",
whose relative class is myservlets.RandomPickPlus (see the configuration file web.xml).
Please note that it is required to keep the information on the last visited page, and thus session handling is mandatory.