Setup application to use JavaServer Pages Standard Tag Library(JSTL)

To check whether JSTL is supported by your web container or not, run below code in jsp page:

Simple Test for JSTL Support: ${1+1}
<c:out value="${1+1}" />

With taglib url as :

<%@taglib prefix="c" uri="" %>


<%@taglib prefix="c" uri="" %>

If jstl is not supported by your application, then it will give error like:

org.apache.jasper.JasperException: The absolute uri: cannot be resolved in either web.xml or the jar files deployed with this application


org.apache.jasper.JasperException: /test_c2_jstl_core_taglib_decl.jsp(11,32) According to TLD or attribute directive in tag file, attribute value does not accept any expressions

To give the jstl support to your applications, download “JSTL API” and “JSTL Implementation” jar files from here and paste it into the lib folder of your web application.

Now run the jsp page again, and you will be able to check output.
JSTL includes a wide variety of tags that fit into discrete functional areas. To reflect this, as well as to give each area its own namespace, JSTL is exposed as multiple tag libraries. The URIs for the libraries are as follows:

  1. Core:
  2. XML:
  3. Internationalization:
  4. SQL:
  5. Functions:

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.