Jsp Directive

Jsp Directive


to convay Special processing information
Syntax: <%@  directive {attribute="value"} %> old format.

attribute =page, include,taglib

Page attribute

Can control:
.MIME type (like the output in excel page)
.Check session participation
.Exception control

Page Attribute.
The lists of attributes that can be used with page directive are: 

• language = “java”
 • extends = “package.class” 
• import = “package.*,package.class” 
• session = “true | false” • info= “text” 
• contentType = “mimeType” 
• isThreadSafe = “true | false” 
• errorPage= “relativeURL”
 • isErrorPage = “true | false”

Thread safe : Thread access control

Include:

Translation time. at compile time
Request time.  at Request of other...

let us to include html,jsp page like header,footer of a site in seprate page

0 comments:

Post a Comment

My Instagram