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.
<%@ page info="This text contain info about the page" %>
<[email protected] info="This is info Attribute of page directive"%> <html> <head> <title>Info Attribute</title> </head> <body> <font color="blue" size="5"> <% out.println("Welcome to Roseindia."); %> <br /> <%=getServletInfo()%> </font> </body> </html>
Posted on: November 29, 2012 If you enjoyed this post then why not add us on Google+? Add us to your Circles