58 iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0
13.Click the Stop button.
14.Click the Refresh button until your server is listed as
Stopped.
15.Click the Start button.
IBM HTTP Server for iSeries (powered by Apache) V5R1
1. Open your browser and go to:
http://system:2001
2. Select IBM HTTP Server for iSeries-> Configuration and Administration->
Configuration.
3. In the Configuration for server list, select
your HTTP server
.
4. Under Configuration structure, choose global settings.
5. Under Web Site Definition, choose Serve New Directory wizard. Click the Next button.
6. Choose Static web pages and files. Click the Next button.
7. In the Name field, enter the actual location of your image directory, for example:
/boats/homepage/. Click the Next button.
8. In the Alias field, enter the path you use to access images from within your HTML file, for
example: /boats/. Click the Next button.
9. Click the Finish button.
10.Select Administration-> Manage HTTP Servers.
11.Select
your HTTP server
.
12.Click the Stop button.
13.Click the Refresh button until your server is listed as
Stopped.
14.Click the Start button.
Assuming images are stored in /boats/homepage/images/, the source to include the boat
company logo as part of the home page or template is:
<img SRC="/boats/images/boathead.gif" height=43 width=614>
3.5.3 Template example
Figure 3-48 shows the contents of a database table using the default iSeries Access for Web
template. Figure 3-49 shows the same table using a custom template and hiding the
navigation bar. To hide the navigation bar, click Customize-> Selected Profile->
your profile
name
-> General-> navigation bar.
Chapter 3. Using iSeries Access for Web 59
Figure 3-48 Database table with default template
Figure 3-49 Database table with a custom template
A custom template must include the %%CONTENT%% tag. When the page is displayed, this
tag is replaced with the iSeries Access for Web content. In our boat example, the header is
replaced with a company logo and a link to the home page
http://system/webaccess/iWAHome. Since the navigation bar is hidden, the home page link is
used to navigate between pages.
60 iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0
The source for the template file is shown here:
<HTML>
<BODY>
<table>
<tr>
<td>
<img SRC="/boats/images/boathead.gif" height=43 width=614>
</td>
</tr>
<tr>
<td align="right">
<a href="/webaccess/iWAHome">Home</a>
</td>
</tr>
</table>
<br>
%%CONTENT%%
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" mm_noconvert="TRUE">
<tr align="center" bgcolor=#000000>
<td width="50" bgcolor="#1B89AD">
<a href="http://www.ibm.com"><font color=#ffffff>IBM</font></a>
</td>
<td width="1" bgcolor=#ffffff>
<img src="transparent.gif" width="1" height="1">
</td>
<td width="70" bgcolor="#1B89AD">
<a href="http://www.ibm.com/server/eserver/iseries/"><font
color=#ffffff>iSeries</font></a>
</td>
<td width="1" bgcolor=#ffffff>
<img src="transparent.gif" width="1" height="1">
</td>
<td width="70" bgcolor="#1B89AD">
<a href="http://www.ibm.com/server/eserver/iseries/support/"><font
color=#ffffff>Service</font></a>
</td>
<td width="1" bgcolor=#ffffff>
<img src="transparent.gif" width="1" height="1">
</td>
<td width="750" bgcolor="#1B89AD">
&nbsp;
</td>
</tr>
</table>
<BODY>
</HTML>

Get iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.