This tag is Just Use to Display The Date and time In unique formats like in long style, Medium style. The style to represent date in “yyyy-dd-mm” format. As per other tags the required attributes are also used in this tag.


This tag <fmt: setTimeZone> Is used to set the required Time Zone Into its Scoped variable, Which can access from it’s Body. Some Attributes also been used like var, value and scope.


In JSTL the tag <fmt: format Number> is been preferred for the showing Number formation In different Format. There are some attributes are used in the tag for proper display.


This tag <c: redirect> redirects or forward to other URL or alternative URL provided in the condition. It also supports <c: param> tag some attributes are also use to make it proper like “URL” Attribute this will use to redirect the browser to other web page.


This tag is used to remove the variable from specified place or with the reference of scope of the variable when the particular space is not set on the first instance for removing variable. This tag ensures that it will remove any scoped resource or variable it tells to remove. Some attributes it also required for it. Like “var” variable name that has to be removed with the help of this tag.


This tag is commonly use for the set property action of any object like to set value, property name. Their also some attributes are used to this tag like “Value” that’s use to save the information. “var” the variable name that has to store the information about value. The other thing this tag is use to evaluates the expression.


                   This tag is used to access proper URL request parameter which is been accessed with URL also.


<c: if> this tag is similar to ‘IF’ control statement of java. This tag will use to execute when the given condition is true in the sense. Some attributes are used to implement in that tag like ‘test’ this is helpful to evaluate the condition….


This tag <c: import> is used to import the absolute URL and show the content to another page. Some mandatory attributes are used to implement on this tag like “URL” this attribute use to retrieve and import the content from one page to another page. Other attributes like “scope” and “var” these are also used as required but this are not compulsory for using in this tag.


This Tag is been Only Used To Break string into Tokens and after that to retrieve them each from the tokens..this quite similar as <c: foreach> bt a major difference is b/w both in that the “Token” tag is been use within the “Delims”  to represent characters as delimiters…


The Core tag <c: forEach> that Tag is casually known as the substitute of While, do While in java Statements. Its    also works as Loop instance with the form of scriptlet in Java Server pages.


  <C:Choose>  Tag is similar to the Java Switch Statement In that case it allow us to choose desired statement that  has to be selected from substituted conditions. This tag has some more features like it has two more tags with it  Like <c:when> tag if the condition goes terminated to next step and the other one is <c: otherwise> works like default value in java switch case statement..And an attribute is also been used in the tag named “Test” that is used for evaluating Condition.


       This tag is Been used for Display the Result of an Expression. That is quite similar with the reference of<%...%>.


<c:catch> JSTL Tag used for exception handling.. In this Program we are going to discuss about exception handling using <c:catch> core tag.

by Dinesh Thakur Category: JSP Elements

When the bill amount exceeds Rs. 1000 then else part of calc.jsp gets executed and it forwards the request to discount.jsp page .

by Dinesh Thakur Category: JSP Elements

Standard syntax

<j sp: forward page= "desturl" />

by Dinesh Thakur Category: JSP Elements

Standard syntax

<% @ include file= "desturl" %>

by Dinesh Thakur Category: JSP Elements

The intention is to introduce the communication in between the servlet and JSP. The welcome page is designed by the HTML code.

by Dinesh Thakur Category: JSP Elements

In the below JSP program the aim is to understand how JSP communicates with the database. The designing is done by HTML.

by Dinesh Thakur Category: JSP Elements

When we send any request to the JSP program from the browser window, we pass the request URL in the browser window. In this process to send the data along with the request, the programmer also requires adding the query string to request URL explicitly. But this task is highly of technical. For that a graphical user interface is required which can generate a request which mayor may not hold the data. For this purpose, the programmer can use either HTML form or hyperlink to generate the request with or without data. The example of HTML to JSP communication is given below:


Page 2 of 5

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.