Java Reference
In-Depth Information
FIGURE 12-70
The following step enters the code for the JSP page directive.
To Use a JSP Page Directive
1. Click the Save button. Enter line 60 as shown in Figure 12-70.
TextPad displays the JSP page directive with the import attribute
(Figure 12-71). The package, java.util, is imported for use in the JSP file.
JSP directive
tag
import attribute
imports java.util
package
JSP page
directive
FIGURE 12-71
As discussed earlier, all JSPs have access to an implicit session object by
default. If you do not want a JSP page to be able to access a session object, use
the JSP page directive with the session attribute, as in
<%@ page session=”false” %>
Your pages will run faster and use less memory in the JVM; however, if you try
to access the session object, you will receive a fatal error from the JSP container.
 
Search WWH ::




Custom Search