Sketching Out the Online Calendar Using HTML Elements
Let's develop the interface of the online calendar using some of the tags that you saw in Chapter 1. You need to create a table to format the days, containing eight rows for displaying the weeks in the month as well as the names of the days, and seven columns for the days in a week. Some parts of the table are static—for example, the names of the days in a week—and the others are dynamic; they need to be computed for display, such as the days in the month.
The Calendar Java Server Page (JSP) will generate the dynamic parts. A JSP is essentially an HTML page, with the extension .jsp, with some additional tags. Let's start with developing the static parts, as shown in Listing 2.1. Figure 2.5 ...
Get Java Server Pages from scratch 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.