6.3. The Second-Level Pages
The top-level page introduces the site and gives links to each of the three second-level pages that describe specific varieties of boats: yachts (Listing 6.7, Figure 6-2), oil tankers (Listing 6.8, Figure 6-3), and aircraft carriers (Listing 6.9, Figure 6-4). Note that simple relative URLs are used for the style sheet and for the servlet with which the form communicates when the user asks for details. Note also that the custom tag maintains the count from the top-level page. That’s because the servlet context is shared by all pages in the Web app.
Figure 6-2. Result of yachts.jsp.
Figure 6-3. Result of tankers.jsp. ...
Get More Servlets and JavaServer Pages™ 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.