Show TOC

Background documentationBuilding a JSPDynPage Locate this document in the navigation structure

 

This document describes the principles of a JSP DynPage and provides a basic example with JSP and describes which methods have to be implemented. The next step is the event handling of a JSP DynPage and the data exchange between the JSP DynPage and the JSP.

To work with this document you need a basic understanding of Java Server Pages (JSP). Sun provides JSP documentation. The Portal Runtime (PRT) has made modifications to the JSP standard. For details see Java Server Pages (JSP) Support in the Portal Runtime (PRT).

The example has following steps:

Creating the JSPDynPage

JSPDynPage event handling

Data exchange between JSPDynPage and JSP

Data Exchange Using a Bean (used in the example).

Alternative: Data Exchange Using the Session Object

Alternative: Data Exchange Using the Context Object

Alternative: Data Exchange Using the Request Object

Concept of the JSP DynPage

JSP/Servlets offer basic event handling, you have to take care of the event handling yourself (analysing the received form, getting the sender of the event etc.). In addition, the programmer has to take care of the session identifier, which is a unique identifier that makes sure that the datasets are user specific. The JSP DynPage provides enhanced event handling and easy session management. In this example we use the HTML-Business for Java (HTMLB) controls to create the Graphical User Interface (GUI). HTMLB is a Portal service.

Dataflow of a DynPage Component

This graphic is explained in the accompanying text.