Share on Google+Share on Google+

The Quintessential in JSP

Quentessential means representing the perfect example of a class or quality.

The Quintessential in JSP


Quentessential means representing the perfect example of a class or quality. It is pure and concentrated essence of a substance.

A Jsp page consists of template text with embedded Jsp elements. Template text is automatically written to the output stream while the embedded Jsp elements are executed. In computer science Template means a document or file having a preset format, used as a starting point for a particular application so that the format does not have to be recreated each time it is created. Here is the simple Jsp page.


The code of the program is given below:



<%@ page import = "java.util.Date"%>
        <title>The Quintessential JSP Page</title>
    This is just a template text, It is going to be write automatically.
    This is the jsp comment
    <%-- This is a JSP comment --%>
    The business logic of the program will be written inside the scriptlet directive.
    <%  for(int i=0; i<10; i++)
		out.println("The value of i is" + i);
    The following is a directive that includes other files:
    <%@ include file="Date.jsp" %>
    The Date is printed inside the JSP expression directive.
    The current date is <%= new Date() %>

The output of the program is given below:

Download this example:



Posted on: February 7, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles

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.

Discuss: The Quintessential in JSP  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image