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.

Important: Using Web Site Designer is not required for developing<br />

applications in Studio Site Developer. The HTML/XHMTL wizard can also be<br />

used to create Web pages (see 5.1.4, “HTML/XHTML wizard” on page 108).<br />

The advantage of using Web Site Designer is in the layout of your application.<br />

It may become difficult to remember every page and every link in your<br />

application using traditional methods. Web Site Designer, on the other hand,<br />

provides you with a high-level picture of your application.<br />

A typical application development scenario using the Web Site Designer might go<br />

through the following steps:<br />

1. Create a Web project. Select a default page template to use for the Web<br />

pages. For information about page templates, see 5.1.5, “Using Page<br />

templates” on page 109. As you create Web pages, the default template will<br />

be used.<br />

2. Open the Web Site Configuration file. You will find this in the root directory of<br />

the project. It is automatically created when you create the Web project. This<br />

file is actually an XML file called .website-config that will contain Web site<br />

design information as you build your Web site using the designer.<br />

3. Begin designing your application by adding pages to the configuration. At this<br />

stage, you are simply adding elements to the design that represent JSP and<br />

HTML pages, and defining their relation to each other. For example, you could<br />

start by creating a top page called index.html.<br />

4. Add additional pages and place them in the design so that the application flow<br />

is illustrated. For example, if index.html will have four menu options, you<br />

should select the index.html box and add four new child pages (one per<br />

option) to the flow.<br />

5. Continue to visually lay out the application flow by creating design elements<br />

that represent each HTML and JSP page in the application. You can move<br />

elements around the diagram as you go to change the application flow.<br />

6. When you are done, create a real page for each design element (you could<br />

also create the Web pages as you go along).<br />

As you build your Web site design, the information is stored in the .website-config<br />

file so that navigation links and site maps can be generated automatically. This<br />

means that when the structure of a site changes, for example, when a new page<br />

is added, the navigation links are automatically regenerated to reflect the new<br />

Web site structure.<br />

94 <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!