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:
<[email protected] 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:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: February 6, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles