This web page is an example using JSP and BEANs.

Guess my favorite two colors

If you fail to guess both of them - you get yellow on red.

If you guess one of them right, either your foreground or your background will change to the color that was guessed right.

Guess them botZgbE'EZgboreground/background will change to my two favorite colors to display this page.

Color #1:
Color #2: