30. Explain the advantages of JSTL

  1. The Java Standard Tag Library (JSTL) is a standardized collection of custom tags.
  2. It has a number of tags for common tasks such as iterating through lists, interacting with databases, handling XML data, formatting data, and much more.
  3. The latest version of JSTL is 1.1. An implementation of JSTL can be downloaded from the Apache Jakarta Web site (http://jakarta.apache.org/).
  4. JSTL consist of four sets of tags and a library of functions, grouped according to their functionality:
  • The JSTL core tag library contains tags that deal with flow control in JSP pages, iterating over collections, evaluating expressions, and importing resources.
  • Before using the core tag library, the following directive needs to be added to the JSP page:
  • <%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core&#8221; %>
  • The equivalent XML syntax for this directive is as follows:
  • <jsp:directive.taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core&#8221; />

The following table summarizes the JSTL core tags.

Tag Name



Catches any Throwable exception that occurs in the body of the tag


Provides conditional operation and allows for choosing between mutually exclusive options


Provides conditional operation


Imports a resource specified by a URL and exposes it to the page, variable, or reader


Iterates over collections


Iterates over tokens


Outputs expressions to the Web page


A conditional operation tag for choosing between mutually exclusive options. This tag is a subtag of the choose tag.


Used along with the import, redirect, or url tags to add a parameter to a URL


Redirects to a new URL


Removes a variable from a scope


Sets the value of an attribute


Creates a URL


A conditional operation tag that includes its body when an expression evaluates to true. This tag is a subtag of the choose tag.


9 Responses

  1. pls send example of jstl

  2. download free addictive game

    SomegifttoME 578259 download free addictive game company

  3. givemepink

    givemepink friends

  4. ash kay mary

    ka-ka-sh-ka 3759437 This page contains some info about ash kay mary

  5. online stock trading game

    online stock trading game introduction

  6. amo fm

    ka-ka-sh-ka 3759437 Relevant links for amo fm.

  7. here comes santa claus

    here comes santa claus intro article

  8. amateur sexcam sender

    ka-ka-sh-ka 3759437 The amateur sexcam sender

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: