BSPs with Layout, Initialization, and Navigation 
This simple BSP applications contains two BSPs with layout, page attributes and the event handler OnInitialization.
Depending on the user input for the year of publication, the next page displays various lists of books in table form.
These BSPs are as follows in the Web Application Builder:
Layout of startpage.htm |
End of the code. |
Layout of page2.htm |
End of the code. |
OnInitialization of page2.htm |
End of the code. |
Page attributes of page2.htm |
||||
Attribute Name |
Automatically |
Typing Kind |
Reference Type |
Description |
Books |
TYPE |
BOOK_TAB |
Book List |
|
Note
The internal table books of type BOOK_TAB is filled in OnInitialization.
The individual steps that are followed when processing this BSP are as follows:
The user calls a BSP application in the browser or enters an appropriate URL.
An HTTP-GET request is sent to the BSP runtime.
The BSP runtime determines the suitable BSP application and the BSP that is called: startpage.htm.
The layout is assessed, since this page only has layout.
The BSP runtime generates the page and sends it to be displayed at the browser.
In the pulldown menu, the user selects the required year of publication and selects the pushbutton.
An HTTP-POST request is now sent to the BSP runtime.
This POST request requests a different page, page2.htm.
Event handler OnInitialization is assessed by this second page. Table BSBOOK is read for those book entries that were made in the year 2000.
The scripting code is processed in the layout and the page is rendered: An HTML table is output and filled with content.
The BSP runtime then generates a suitable response
and sends it to the browser that displays the BSP.