Building a Simple Web Page


Once the HTTP Server is configured and started, its time to build a simple Web page. Its not the purpose of this book to teach you how to design Web pages. Many books and tutorials are readily available to teach the various languages used in Web programming. The most common Web programming language is HTML, or Hyper Text Mark-up Language. HTML is a specialized language used to describe and deliver content to a Web page. To write our first Web page, open a simple text editor, such as Notepad, and enter the code shown in Figure 31.20.

image from book
Figure 31.20: First Web page HTML code.

Enter the HTML code and then save the file as MYPAGE.HTML in the folder on the IFS referenced in Figure 31.4. It may be necessary to use iSeries Navigator to define that folder as sharable and map a network drive to it. Then, open a Web browser, such as Internet Explorer, and enter the address of http://www.your-i5-ip-address/your-folder/MYPAGE.HTML to display your first Web page in a browser as shown in Figure 31.21.

image from book
Figure 31.21: First Web page displayed.

As simple as that, you are on your way to deploying browser-based applications on your iSeries. Obviously, this example was quite simple; real applications require much more complex Web pages. These Web pages may include both input fields and data from the iSeries database. Several tools are available for getting data to and from a Web page on the iSeries. The one that I highly recommend everyone to consider is CGIDEV2, which is discussed next.



IBM i5/iSeries Primer(c) Concepts and Techniques for Programmers, Administrators, and Sys[... ]ators
IBM i5/iSeries Primer(c) Concepts and Techniques for Programmers, Administrators, and Sys[... ]ators
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 245

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net