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> <body> <font size="10"> <%String name= "Ankit";out.println( "Hello " + name + "!"); %> </font> </body></ html>
|
Output

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.