JSP page directive – language

This attribute is used to denote the language used by a file. Language denotes the scripting language used in scriptlets, declarations, and expressions in the JSP page and any included files.

Syntax of language attribute available for page directive is

<%@ page language = “lang” %>

In the above statement page and language are keywords and one places whatever language the file uses inside “”.

For example if one wants to mention the language as java which is generally mentioned for all it is done as shown below:

<%@ page language = “java” %>

Leave a Reply

Your email address will not be published. Required fields are marked *