April 2002
Beginner to intermediate
1128 pages
26h 33m
English
You will now add a servlet to the Agency case study. The servlet sends the contents of the agency database tables to be displayed by a browser. The rows of the tables are formatted as an HTML table.
The servlet first outputs an HTML form on which the user selects the name of a table from a pull-down list (see Figure 12.25).

After the user clicks the Submit Query button, the servlet displays the contents of this table on the same page.
The AgencyTable servlet overrides the init() method to obtain the servlet context along with the JNDI context for the Agency EJB. The Agency ...
Read now
Unlock full access