O'Reilly logo

Oracle® Web Application Programming for PL/SQL® Developers by Benjamin Rosenzweig, Solomon Morse, Melanie Caffrey, Susan Boardman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required