JSTL Core Tag Library

JSTL Core Tag Library


Posted in : Java Posted on : April 1, 2012 at 6:35 PM Comments : [ 0 ]

In this tutorial you will learn about the core tag in JSTL

JSTL Core Tag Library

In this tutorial you will learn about the core tag in JSTL

Core Tag Library is a collection of core tags that are related to the variables and flow control.

Core tags can be classified on the basis of their functional area these are as follows :

Function Tags
Variable Support remove, set
Flow control if, choose, when , otherwise,
forEach, forTokens
URL management import, param, redirect, url
Miscellaneous catch, out

The above table describes that each tag has its own work purpose i.e they are defined as according to their functions such as :

set : This tag is used to set the value or property of an EL variable in either of the JSP scope (page, request, session, application).

remove : This tag is used to delete an EL variable

choose : This tag is a simple conditional tag that is used for setting up a circumstances for manually exclusive conditional operations.

when : This tag is a subtag of choose which includes its body when its conditional value is evaluated as 'true'

otherwise : This tag is a subtag of choose which follows the when tag and is executed only if all of the prior conditional value is evaluated as 'false'.

forEach : This tag is a basic iteration tag.

forTokens : This tag is used for iterating over tokens with the help of given delimiters used for separating.

import : This tag is used to retrieve the URL that may be an absolute or relative.

param : This tag is used to add a parameter to a URL.

redirect : This tag is used to redirect to an another URL.

url : This tag is used to create a URL with the help of an optional query parameters.

catch : This tag caughts the Throwable happens in its body.

out : This tag is used just like the expressions in JSP that are used to insert values directly into the output. Like <%= .... %>

Go to Topic «PreviousHomeNext»

Your Comment:


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

 
Tutorial Topics