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 (Page 1 of 4 )
Another direction that software programs are headed is in the pursuit of Rapid Application Development. RAD translates to writing less and less code without losing the functionalities achieved by programs fortified with bulletproof code. This article shows how effortless it is to display data from a data server on a web page using the Sun Java Studio Creator 2.
Creating a Web Page
It will be helpful if readers can review the article JSP Basics with Java Studio Creator 2 for VB Programmers which described the Sun Java Creator 2 IDE in considerable detail. The article also described some of the tasks like adding a control to the web page, creating and responding to an event raised by the control, adding images, and so forth.
You may create a new project in the New Project window which may be accessed from the menu item file in its drop-down option, New Project.... You will be choosing to create a JSF Web Application project, which will be called DisplayData. It may be useful to remember where the files and folders for the project are created. The Project may be stored in a location of your choice, but in this tutorial the defaults are accepted as shown.
This simple act of creating a project has created a whole support structure for the project as evidenced in this project directory tree. For formatting the display you have the support of a stylesheet.css and a number of themes.
The project also has the default page, Page1.jsp, with all the necessary HTML markups, as well as the built-in Request, Session and Application beans as shown in the next picture. By default, the page comes up with the default layout, GridLayout. This may be changed to FlowLayout if desired.