Reviewing It |
1: | Explain the difference between the HTP package and the HTF package. |
A1: | The HTP package contains PL/SQL procedures that generate HTML output, whereas the HTF package contains PL/SQL functions that return HTML code as the return value |
2: | What is htp.p used for? |
A2: | htp.p can be used to pass the text <HTML> to the HTML output |
3: | Why would you want to call another PL/SQL procedure in a Web environment? |
A3: | This called pl/sql is a way of giving a consistent look with appearances and error messages across the Web site |
4: | In Listing 9.9, line 4, why is the p_inv_id variable set to null? |
A4: | To provide the procedure with a default value in the case that no value was passed, the Web page displays with the lowest inv_id record in the database |
5: | In Listing 9.10, what error message will be displayed if the car requested cannot be found? |
A5: | 42:p_text => 'The auto selected could not be found'. |
Checking It |
1: | If you have an htp.bodyopen command you need an
|
A1: | c |
2: | What happens if an input parameter does not have a default value and none is passed?
|
A2: | b |
3: | When using PL/SQL, you do not need a virtual path at all. True/False |
A3: | False, the virtual path tells the Web server that this is a PL/SQL. |
Applying It |
Independent Exercise 1:
Independent Exercise 2:
Independent Exercise 3:
3.146.178.165