29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

d. Select HTML or XHTML as the Markup language and None as the Model.<br />

e. Click Finish. The new page is opened in Page Designer.<br />

4. Right-click the mouse in Page Designer to add content to the page:<br />

a. Enter text directly.<br />

b. Drag and drop items from the palette (Window -> Show View -> Other -><br />

Web -> Palette).<br />

c. Choose Insert -> Page Template -> Content Area. The content area is<br />

very important to users because it is the only area in which they can insert<br />

or add information. They cannot edit the rest of the page created from the<br />

page template.<br />

d. Choose Insert -> Page Template -> Page Fragment. Inserting a page<br />

fragment lets you include part of a page from another file (this is similar to<br />

an SSI include or a JSP include). Changes in the page fragment are also<br />

applied immediately to all the pages created from the template.<br />

5. Choose File -> Save as Page Template. The Save as Page Template<br />

window opens and you can select the folder in which to save the template file.<br />

5.1.6 Working with framesets<br />

In our sample application, we no longer use framesets, but instead, use the page<br />

templates. However, framesets are still commonly used in Web applications to<br />

control the organization and flow of the Web pages. One common Web page<br />

design consists of a banner or title in a horizontal top frame, navigation links in a<br />

narrow left frame with content in a wider frame on the right. Studio Site Developer<br />

provides you with easy-to-use tools to create and work with framesets.<br />

As an example, let’s build an entry for a Web site using a frameset. We will create<br />

a parent frame called index.html. It will have the following frames:<br />

► A frame that spans the top called header.html. It will contain the company<br />

logo and links to company information.<br />

► A frame on the lower left called menu.html. It will contain menu options.<br />

► A frame on the lower right called main.html. It will contain the page displayed<br />

when the user selects an option.<br />

To build this frameset, you would do the following:<br />

1. Create a new HTML page in the Web Content directory called index.html<br />

(New -> HTML/XHTML file).<br />

2. Switch to the Design view and select Frame->Split Frame ->Split<br />

Horizontally in the menu bar.<br />

112 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!