29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example 5-1 spec.html<br />

<br />

[<br />

< !-- siteedit:forEach var="item" items="${sitenav.items}" varStatuc="status"<br />

--><br />

< !-- siteedit:choose --><br />

< !-- siteedit:when test="${item.self}" --><br />

${item.label}<br />

< !-- /siteedit:when --><br />

< !-- /siteedit:otherwise --><br />

< !-- /siteedit:choose --><br />

< !-- siteedit:if test="${!status.last}" -->|< !-- /siteedit:if --><br />

< !-- /siteedit:forEach --><br />

]<br />

<br />

5.1.4 HTML/XHTML wizard<br />

If you do not want to use the Web Site Designer, you can use the HTML/XHTML<br />

wizard to add pages to your project.<br />

Follow these steps to create a new HTML or XHTML file:<br />

1. Select File -> New -> HTML/XHTML File to launch the wizard.<br />

2. Click Browse to select the appropriate location for the file. The folder that you<br />

choose should be under the WebContent folder of the Web project. If an<br />

HTML file that is included in a dynamic Web project is not stored under this<br />

folder, then it will not be included in the WAR file that is deployed to the server.<br />

In addition, link validation will not encompass files that are not under the<br />

WebContent folder.<br />

3. Type a name for your new file.<br />

4. Ensure that the appropriate HTML or XHTML option is displayed in the<br />

Markup Language drop-down list.<br />

5. You have three options for proceeding:<br />

a. If you want to accept the defaults associated with a new HTML or XHTML<br />

file, leave the Model field as None and make sure the Configure advanced<br />

options is deselected.<br />

b. If you want to apply a page template to your new file, select Page<br />

Template in the Model field and click Next.<br />

i. If you want to use one of the sample templates provided, select<br />

Sample Page Template and then choose one of the templates shown<br />

in the Thumbnail box.<br />

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