Home Jsp The info Attribute of page Directive In JSP

Related Tutorials


 
 

Share on Google+Share on Google+

The info Attribute of page Directive In JSP

Advertisement
This section gives you the introduction about the info attribute of the page directive in JSP.

The info Attribute of page Directive In JSP

     

This section gives you the introduction about the info attribute of the page directive in JSP. This attribute simply sets the information of the JSP page which is retrieved later by using Servlet.getServletInfo() method. The value of the attribute will be a text string.

Here is the JSP code:

 

<%@page info="This is the example of info attribute of the page directive." %>
      <html>
	<head><title>Info Attibute of page directive in JSP.</title></head>
      	<body>
		<%
			out.println("Example of the info 
attribute of the page directive in JPS.");
		%>
	</body>
</html>

Output of the JSP page:

Download this JSP example.

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


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: February 6, 2008

Related Tutorials

Discuss: The info Attribute of page Directive In JSP  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com