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.");
}
%>
</BODY>
</HTML>
JDBC
There are seven standard steps in querying databases:
/** A JDBC example that connects to either an Oracle or a Sybase database and prints out the values of predetermined columns in the "fruits" table. */
public class FruitTest {
public static void main(String[] args) {
if (args.length < 5) {
printUsage();
return;
}
String vendorName = args[4];
int vendor = DriverUtilities.getVendor(vendorName);
0 comments
Post a comment