Displaying Data from a Data-centric Web Page with Sun Java Creator 2
Most of our activities are data-centric and will become more so even if our communication mode moves on to an increasingly message-driven architecture. Most application software programs place a major emphasis on how data is retrieved, displayed, manipulated, recorded and archived. Sun Java Studio Creator 2 is no exception.
Displaying Data from a Data-centric Web Page with Sun Java Creator 2 - Referencing a Data Source (Page 2 of 4 )
Double click the Data Source Reference node in the project directory, which brings up the following window from which you may add a Data Source Reference by choosing one of the existing data sources. 2k5Java is a datasource which was added to Sun Java Creator 2's Data Sources as described in a previous article. 2K5Java obtains its data by virtue of a connection established with the SQL 2005 Server. It is really effortless to connect to a data source as the interface is very easy and GUI-driven.
You will be using the 2k5Java source for this tutorial. Highlight 2k5Java and click on the Add button.
Adding a table object to the page
The object of adding a table object is to use the table as a container for the data that is retrieved from the data source. You add the table by double clicking the control in the Palette. By default, the controls will be added to the top, left corner of the web page and you may drag them to some other location if you wish. The row/column numbering is explicitly shown and the table object comes up with a default having three columns and five rows as shown.