Unit 10.2. Create Web Pages in PL/SQL

A First Web Toolkit Web Page

The HTP package contains procedures that generate HTML tags. For every HTML tag there is an HTP procedure that produces that tag. The most commonly used procedure in the HTP package, however, is the print, or htp.print(‘parameter’) procedure. This procedure simply prints whatever is passed to it as a parameter and adds a new line to the end of the parameter.

FOR EXAMPLE

htp.print('This is an example.'); 
htp.print('This is the second line.'); 

produces this on a Web browser:

This is an example. 
This is the second line. 

The alias for htp.print(); is htp.p();.

The htp.p procedure ...

Get Oracle® Web Application Programming for PL/SQL® Developers 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.