Java Reference
In-Depth Information
20.
Select MonthBean and click the OK button.
In the Insert JSP Bean window, the class name will be displayed.
21.
On the Insert JSP Bean window, click the OK button.
In the Design view, a bean icon will appear in the table. Displaying the source code will show that the following
JSP useBean tag was inserted into the table cell.
<jsp:useBean id="MonthDDM" class="c9.MonthBean"></jsp:useBean>
In the Design view, Click JSP , and then Insert Get Property... .
22.
The Insert JSP Get Property window will be displayed. The listed items are the implicit objects supplied by
the JSP container.
23.
On the Insert JSP Get Property window, in the Beans and properties pane, scroll to the end
of the list.
24.
Expand the MonthDDM list item and click the monthDDM property.
Notice that the bean information is inserted into the text fields (see Figure 9-29 ).
Figure 9-29.
25.
Click the OK button.
There should be two icons in the table, representing the use bean and get property tags.
26.
In the table cell, add two new beans called DayDDM and YearDDM (that are associated
with the DayBean and YearBean classes) and display their properties immediately after
the MonthDDM bean by performing steps 17 through 25 for the new beans.
The EnterShipInfoJSP Design pane should look like Figure 9-30 .
Search WWH ::




Custom Search