| JSP Directives |
|
| Introduction |
| |
| A JSP directive affects the overall structure of the servlet class. |
| |
| It usually has the following form: |
| <%@ directive attribute="value" %> |
| |
| However, we can also combine multiple attribute settings for a single directive, as follows: |
<%@ directive attribute1="value1"
attribute2="value2"
...
attributeN="valueN" %> |
| |
| There are two main types of directive: |
| 1. Page: which lets us do things like import classes, customize the servlet superclass, and the like; |
| 2. Include: which lets us insert a file into the servlet class at the time the JSP file is translated into a servlet. |
|
| |
|
| |
| |