---
title: "Explain JSP directives in JAVA language ?"  
description: "Explain JSP directives in JAVA language ?"  
author: "Anonymous User"  
published: 2019-09-06  
updated: 2019-09-06  
canonical: https://www.mindstick.com/forum/95338/explain-jsp-directives-in-java-language  
category: "java"  
tags: ["java", "programming language"]  
reading_time: 2 minutes  

---

# Explain JSP directives in JAVA language ?

[Java](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming) Servlet [Page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page) [directives](https://www.mindstick.com/blog/44/directives-in-asp-dot-net) in JAVA [language](https://www.mindstick.com/startup/28/preply-the-fast-growing-platform-transforming-language-learning) .

## Replies

### Reply by Anonymous User

**Java Servlet Page directives in JAVA language**

- In the JSP directives are the messages to JSP container. That produce global information about an entire JSP page.
- In the JSP directives are used to give special instruction to a container for translation of JSP to servlet code.
- In the JSP life cycle phase, JSP has to be converted to a servlet which is the translation phase.
- Those give instructions to the container on how to handle certain aspects of JSP processing
- The directives can have many attributes by comma-separated as key-value pairs.
- Into the JSP, the directive is described in <%@ %> tags.

There are three types of directives:

- Page directive
- Include directive
- Taglib directive

## Syntax of Page directive :

<%@ page…%>

- These provide attributes that get applied to the entire JSP page.
- These defines page dependent attributes, such as scripting language, error page, and buffering requirements.
- These are used to provide instructions to a container that pertains to the current JSP page.

Following is its list of attributes associated with page directive:

1. Language
2. Extends
3. Import
4. contentType
5. info
6. session
7. isThreadSafe
8. autoflush
9. buffer
10. IsErrorPage
11. pageEncoding
12. errorPage
13. isELIgonored


---

Original Source: https://www.mindstick.com/forum/95338/explain-jsp-directives-in-java-language

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
