Java Reference
In-Depth Information
The next line we see that isn't standard HTML is a JSP page directive. JSP page
directives define attributes that apply to the entire page. A JSP page can have more
than one page directive, and each directive defines one or more page attributes.
The contentType attribute sets the mime type and, optionally, the character set for
the page. The pageEncoding attribute sets the character encoding the page uses to
render itself.
We can see all valid attributes (and their descriptions) for the page directive by
typing <%@page then hitting Ctrl+Space . Rather than repeating this information here,
readers are encouraged to see it "live" in NetBeans by performing this action.
We will now write our own web application using NetBeans' generated code and
markup as a base.
 
Search WWH ::




Custom Search