pageEncoding="GBK"%>
argsString bgColor = request.getParameter("bgColor");
boolean hasExplicitColor;
if (bgColor != null) {
hasExplicitColor = true;
} else {
hasExplicitColor = false;
bgColor = "WHITE";
}
%>
var x =
alert(x);
alert(xx);
int xxx = 20;
%>
alert(
);
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, an RRGGBB value, or to see "
+ "if your browser supports X11 color names.");
}
%>