Adding content

After you create a Web target, you are ready to begin developing content. You should probably start by setting up the folder structure for your target.

Adding new folders

When you add content to a Web target, you use folders to set up a logical directory structure for the content. When you deploy a Web target, the deployment engine replicates the folder structure on the server system. It also processes the content for the target Web server and application server, and rewrites link information to fit the directory structure.

StepsTo add a new folder to a Web target:

  1. On the Workspace tab of the System Tree, right-click a Web target (or a folder under a Web target), then select New Folder from the pop-up menu.

  2. Right-click the new folder that displays under your Web target and select Rename from the pop-up menu.

  3. Type in the name you want to give to your folder.

Adding new HTML or JSP files

With a folder structure in place, you can begin adding files to those folders. The Web page of the New dialog box has wizards for creating the various types of files you can edit in a Web target.

Table 2-2: Web page wizards

Select this

To do this

Quick Web/JSP Page

Open a new, unnamed HTML (Web site targets) or JSP (JSP targets) page in the HTML editor

Web/JSP Page

Create a new HTML or JSP page, specify design settings such as background color for the page, and open the page in the HTML editor

4GL JSP Page

Create a new 4GL JSP page, specify design settings such as the background for the page, select error reporting settings, page parameters, and EAServer components, and open the page in the HTML editor

Web/JSP DataWindow Page

Create a new HTML or JSP page that contains a Web DataWindow design-time control (DTC), specify design settings such as the background for the page and configuration information for the DTC, including the EAServer profile

Frameset Page

Create a new frame page for your HTML or JSP files

Script

Open a new, unnamed script file in the standalone Script editor

Cascading Style Sheet

Open a new external style sheet file (and optionally reference an existing style sheet) in the Style Sheet editor

JSP Web Service Proxy

Create a proxy object to use Web services

StepsTo add new HTML or JSP files to a Web target:

  1. Right-click a Web target, or a folder under a Web target, then click New from the pop-up menu.

    The Web page of the New dialog box displays:

    Shown is the Web tab page of the New dialog box. It displays labeled icons for launching the following wizards: Quick Web / J S P Page, Web / J S P Page, 4 G L Web / J S P Page, Web / J S P Data Window Page, Frame set Page, Script, Cascading Style Sheet, and J S P Web Service Proxy Wizard.

    Selecting an item in the New dialog box launches a wizard that helps you set up a new file.