Java Reference
In-Depth Information
15.
Change the view by clicking on the Source tab in the Content pane.
The result should look like Figure 9-2 .
Figure 9-2.
More About JSPs
JSPs can contain four major types of Java “scripts:” scriptlets, expressions, declarations, and directives. Notice in
Figure 9-2 that even though the Java scripts and HTML statements are mixed together, the Java is differentiated by
tags . Each type of script has its own unique tags. As you can see in Figure 9-2 , scriptlets begin with a <% tag and end
with a %> tag. The following table shows each of the four major tag types, its purpose, and an example.
 
Search WWH ::




Custom Search