In this Section , we will discuss about the "language" attribute of a JSP page & its use in JSP page.
In this Section , we will discuss about the "language" attribute of a JSP page & its use in JSP page.In this Section , we will discuss about the "language" attribute of a JSP page & its use in JSP page. A directive element in a JSP page provides global information about a particular JSP page.Page directive attributes that notify the Web container about the general settings of a JSP page. The syntax of the page directive is :
<%@ page attribute_list %>
Language attribute defines the scripting language of the JSP page. The syntax of the page directive is :
<%@page language="language_name" %>
Code using 'language' attribute of JSP page directive
|
<%@ page language="java" %>< html> <head><title>Hello World JSP Page.</title></head>String name= "Ankit";out.println( "Hello " + name + "!"); %></ html>
|
Output
