Saturday 14 March 2015

Exploring page directive


Directives provide instructions to JSP compiler. 'page' is also a kind of directive which gives instructions to JSP compiler.

Example
<%@page contentType="text/html" pageEncoding="UTF-8"%>

page directive supports below attributes.
autoFlush,
buffer,
contentPage,
errorPage,
extends,
import,
info,
isELIgnored,
isErrorPage,
isThreadSafe,
language,
pageEncoding,
session.

A jsp page contains any number of page directive. But you can't specify the attribute more than once, other than 'import' attribute in a single jsp page.



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment