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.

ii. If you want to use a template of your own, select User-defined Page<br />

Template and then click Browse to select the template from the file<br />

system.<br />

c. If you do not want to use a page template, but want to specify or customize<br />

the file options, select the Configure advanced options check box and<br />

click Next.<br />

i. If you want to select an encoding type, deselect the Use workbench<br />

encoding check box to select a new encoding attribute. Select the<br />

appropriate encoding value to add to the file's HTML declaration from<br />

the Encoding drop-down list.<br />

ii. The default is the value set in the HTML Files preferences page, which<br />

is accessed by selecting Window -> Preferences, and then expanding<br />

the Web and XML Files preferences.<br />

iii. Ensure that the proper content type is selected in the Content Type<br />

drop-down list. The default is text/html.<br />

iv. Select the Document Type that you wish to associate with the HTML or<br />

XHTML file. The default for an HTML file is HTML 4.01 Transitional,<br />

while the default for an XHTML file is XHTML 1.1.<br />

v. Specify a cascading style sheet (CSS) file to be referenced by the new<br />

HTML or XHTML file. Typically, CSS files are located in the theme<br />

folder under the WebContent folder. You can click Add to choose a<br />

style sheet from the file system. Choose Remove to delete a style<br />

sheet from the list, or use the arrow buttons to rearrange the order in<br />

which the file references the style sheets. If a style sheet is already<br />

associated with the project in which you are creating the new file, that<br />

style sheet is the default.<br />

6. Click Finish to create the file in the project that you have selected. As a<br />

default, the new file opens in Page Designer, in the Design page.<br />

5.1.5 Using Page templates<br />

Page templates provide a starting point for JSP and HTML pages. By selecting a<br />

template to use throughout the application, you ensure a consistent look and feel<br />

for the application. Using templates also makes maintenance of this look easy. A<br />

change to the template automatically updates all pages using that template.<br />

Studio Site Developer provides a page template library populated with a<br />

commonly used templates. You can use these as they are, modify them, or<br />

create your own templates. The Web page wizards, Page Designer, and Web<br />

Site Designer tools are especially designed to make using templates easy.<br />

Chapter 5. Working with HTML 109

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

Saved successfully!

Ooh no, something went wrong!