Layout for the First Page
The layout for the first page (default.htm), which you set using the tab page Layout, looks like this:
<%@ page language="abap" %>
<h3> Welcome to our small bookshop! </h3>
It offers the following small features:
<a href="../tutorial_2/results.htm">catalogue (from last tutorial)</a><br>
<a href="search.htm">search book</a><br>
This code uses HTML to create three links, and uses theinclude directive (see below). The first link links to the list of authors, which you created in the previous tutorial (see A Simple BSP Application). The second link links to the search page, and the third link links to an information page.
The Include Directive
In the code for this page, the following line comes after the page directive:
<%@ include file="head.htm" %>
This directive includes the page fragmenthead.htm in the page default.htm. This has the effect that the first page gets the header defined in head.htm.
The syntax of the page directive is as follows:
<%@ include file="relativeURL" %>
Theinclude directive includes existing pages and page fragments in the BSP. Make sure that you always use a relative URL when specifying the page to be included.
If you view the page
Layout for the Info Page