previous
|
index
|
next
Scriptlets
Form of a scriptlet:
<% ... %>
with code in between.
Great for iteration and conditional statements, but
Complex scriptlets make JSP hard to understand and maintain
Example:
Loop.jsp
Here is the URL:
http://redrock.d.umn.edu:8080/jspbook/Loop.jsp
Use your browser's "View Page Source" option to see what was sent
Here is the generated Servlet source file:
Loop_jsp.java
previous
|
index
|
next