Đang chuẩn bị liên kết để tải về tài liệu:
WebSphere Studio Application Developer Version 5 Programming Guide part 29
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
WebSphere Studio Application Developer part 29 provides integrated development tools for all e-business development roles, including Web developers, Java developers, business analysts, architects, and enterprise programmers. The customizable, targeted, role-based approach of WebSphere Studio Application Developer will be characteristic of all new products built on the WebSphere Studio Workbench. It is well integrated with WebSphere Application Server and provides built-in server test environments that can be used for testing and profiling Web applications | Figure 8-7 Create Database Web Pages wizard design result form Here you can change the heading of the columns and page properties. If you do not want to show one or more of the fields retrieved from the query you can deselect them in the top left pane. Typically you would only select a subset of the fields for the master table. To change the labels select the item in the top left pane and make your changes in the bottom left pane. Typically you would change the headings of the table to short descriptive names. The next page shows the default form for showing details of a selected row in the details view page Figure 8-8 . You can make the same type of changes here as on the master table view page to improve the look of the page. 254 WebSphere Studio Application Developer Version 5 Programming Guide Figure 8-8 Create Database Web Pages wizard design detail form Finally you can specify the default prefix for all generated objects Figure 8-9 . Clicking Finish generates the Java classes and HTML JSP pages. Figure 8-9 Create database Web pages wizard select prefix Chapter 8. Developing Web applications with database access 255 Defining a data source in the server Before we can test the application we have to set up the data source in the server. To use a data source you have to configure the server to recognize it. For our application we have to register a data source for the EJBBANK database. These steps assume that a WebSphere v5.0 Test Environment server has already been created as explained in Creating a server for testing on page 224. Open the Server perspective and edit the server configuration of the ItsoServer Go to the Data source tab. Under Server Settings select the Default DB2 JDBC Provider from the JDBC provider list and click Add next to the data source list. The Create a Data Source dialog is displayed Figure 8-10 . Figure 8-10 Create a Data Source dialog Select DB2 JDBC provider and make sure Version 5.0 data source is selected then click Next. In the .