Home Tutorial Jsp Page Directive attribute - info


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

Page Directive attribute - info

This tutorial  contains description of info attribute of page Directive.

info Attribute :

info attribute of page directives sets the information of the JSP page which can be retrieved later by using getServletInfo() method of Servlet interface. The value of the attribute will be a text String. This feature is useful where a huge number of server programs are running on a server and you need to know about a particular servlet or JSP. You will get information of that JSP using "Servlet.getServletInfo()" method.

Syntax :

<%@ page info="This text contain info about the page" %>

Example :

<%@page info="This is info Attribute of page directive"%>
<title>Info Attribute</title>
<font color="blue" size="5"> 
out.println("Welcome to Roseindia.");
<br />
<%=getServletInfo()%> </font>

Output :


Related Tags for Page Directive attribute - info:

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