Java Reference
In-Depth Information
The cursor should be positioned at the beginning of the state field's INPUT tag (indicated by the first arrow
in Figure 11-5 ).
Figure 11-5.
All the HTML before the INPUT tag will be copied to a file called StartEEIF.html. The HTML after the tag (indicated
by the second arrow in Figure 11-5 ) will be copied to a file called EndEEIF.html. In the JSP, the new stateDDM tag will
be inserted and include tags for the new html files will be inserted before and after the stateDDM tag.
5.
Copy all the HTML before the INPUT tag.
6.
In WebContent/c11, create a new Web Page of type HTML/XHTML called StartEEIF.
7.
In StartEEIF, select all the default code.
8.
Paste the code copied from EnterEmpInfoForm over the default code and save StartEEIF.
9.
In EnterEmpInfoForm, copy the HTML after the INPUT tag.
10.
In WebContent/c11, create a new file called EndEEIF and paste the code just copied from
EnterEmpInfoForm.
11.
Save EndEEIF and at the Conflict Encoding window click Yes.
Please note that EndEEIF shouldn't be an HTML file. Because the copied HTML does not define a “complete”
page, entering it in an HTML file will generate numerous source code warning messages (that we will ignore) and
warnings like the encoding conflict.
12.
Bring up EnterEmpInfoJSP in the Page Designer and select the include tag (i.e., select the
form).
If the include tag was selected, the form should be outlined in black and the properties view will show that the
jsp:include tab, on the left, is selected (as in Figure 11-6 ).
 
Search WWH ::




Custom Search