<% String bgColor = request.getParameter("bgColor"); boolean hasExplicitColor = true; if (bgColor == null) { hasExplicitColor = false; bgColor = "WHITE"; } %>

Color Testing

<% if (hasExplicitColor) { out.println("You supplied an explicit background color of " + bgColor + "."); } else { out.println("Using default background color of WHITE. " + "Supply the bgColor request attribute to try " + "a standard color or RRGGBB value, or to see " + "if your browser supports X11 color names."); } %>