Home Tutorial Jsp Page Directive attribute - language

 
 

Share on Google+Share on Google+
Page Directive attribute - language
Posted on: November 29, 2012 at 12:00 AM
Advertisement
This section contains description of language attribute of page Directive.

Page Directive attribute - language

This section contains description of language attribute of page Directive.

language Attribute :

The language attribute is one of attribute of page directive. Its functionality to specify the scripting language used in JSP page. By default its value is "java". This attribute of page directive specifies the other scripting languages to be used by the JSP page.

Syntax :

<%@page language="scripting language"%>

Example :  In this example we are using language attribute of page directives.

<%@page language="java"%>

<html>
<head>
<title>language Attribute of Page Directives</title>
</head>

<body>
<font size="5" color="green"> 
<%
String name = "Roseindia";
out.println("Hello " + name + "!");
%> 
</font>
</body>

</html>

Output :

Advertisement

Related Tags for Page Directive attribute - language:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 29, 2012

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com