Listing 4.10 HTML code to call the interactive query applet.
Interactive JDBC SQL Query Applet
The Final Product Figure 4.3 shows a screen shot of the completed applet, and Figure 4.4 shows the applet running. Not too shabby for our first try. We ve covered a lot of ground in creating this applet, so let s take some time to recap the important details. We learned how to: Figure 4.3 The completed Interactive Query applet. Figure 4.4 The Interactive Query applet running. Open a connection to a data source Connect a Statement object to the data source via the connection Execute a query Get MetaData information about the result of the query Use the MetaData information to properly get the results row-by-row, column-by-column Close the connection To use the applet, you can load the HTML file in a Java-enabled Web browser, or you can start the applet from the command line: bash$ appletviewer IQ.html &
Get account with us and you will get completely access to our free web templates database with over 10.000 templates in it to build your website.Don’t wait, go and check free web templates.