Home Jstl Downloading JSTL
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Downloading JSTL

Advertisement
In this tutorial we are going to use Tomcat Version (apache-tomcat-5.5.17), If you are using older version of Tomcat (say Tomcat 4.1) then follow the following steps to use JSTL in your program.

Downloading JSTL

     

In this tutorial we are going to use Tomcat Version (apache-tomcat-5.5.17), 

If you are using older version of Tomcat (say Tomcat 4.1) then follow the following steps to use JSTL in your program.

Different installation procedure has to be followed for Tomcat 4.x and Tomcat 5.x Containers. To use JSTL two files jstl.jar and standart.jar are required to be placed into WEB-INF/lib directory of the web application. Each web application must have this file. With Tomcat 5.0 these files can be copied from the examples folder webapps/jsp-examples/WEB-INF/lib/ folder.

JSTL Installation on Tomcat 4.1

Here we are going to install the JSTL library on the tomcat 4.1.

Advertisement

This differs from Tomcat 5.0.x installation, as the tld files have to be copied in application folder at a particular location and entries for these

  1. Download the JSTL archive (binaries not source) from the Jakarta Website. Unzip/untar the file.
  2. Copy the jar files you've extracted to common/lib in your Tomcat installation (although you won't need all the jar files for our project). This makes the JSTL jar files available to any of your Web applications.
  3. For any Web application for which you want to use JSTL, copy the .tld files to the WEB-INF directory in your Web application.
  4. For your JSTL Web application, edit your web.xml file and add the following entries:
<taglib>
    <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/fmt.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
    <taglib-location>/WEB-INF/sql.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
    <taglib-location>/WEB-INF/x.tld</taglib-location>
  </taglib>

There are two versions of JSTL, each with their own URI.

For JSP1.2 Containers: (e.g. Tomcat 4)
JSTL1.0: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

For JSP2.0 Containers: (e.g. Tomcat 5)
JSTL1.1: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


Make sure you have installed the right version for your server, and are using the correct uri.

Advertisements

Liked it!  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.

Posted on: March 28, 2008

Ask Questions?    Discuss: Downloading JSTL   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
sanjay
March 16, 2011
jstl

reqired jstl library
aadi
August 12, 2011
grid

good work
person
June 13, 2012
hi

It should be noted that this is an article lifted from the jaqva world website.
hemraj
June 26, 2012
http://java.sun.com/jsp/jstl/core

i want jstl core lib
keval
June 13, 2013
10 pass

jstl
navneet kumar yadav
July 12, 2013
dance

i dance
STAR BOOK STORE
July 14, 2013
BOOKS SHOP AND TOURS N' TRAVELS

JUST DIAL IS MAGIC, IT HAS EVERY INFORMATION WHAT WE WANT TO KNOW. SO THANKS
muppudathi
July 26, 2013
civil

Civil job
mahesh
August 6, 2013
pulses matter

i want raw material of pulses i have dall mill
Pradeep
September 3, 2013
Contacts

I want the contacts numbers of hospitals in bangalore n kolkata
anil mohan
August 17, 2013
job hospital administrator

want to submit my profile
mithun chavhan
September 7, 2013
airtel digital tv care

good work
Gopi
August 27, 2013
i need some important contact numbers

i am very happy
hiteksha
September 13, 2013
ambulance

sir if there is any ambulance facility is provided in your hospital if yes then please send your contact no. and location thankyou
bv harish
September 14, 2013
PlLoans.pancard.passpost.credit cards

good service is given
Genius Machado
January 28, 2014
Downloading process???

How do I download this???????
amarjeet singh
May 19, 2014
download just dial windows 8 pc app

plz tell me whehe link to download this app....
kavya
September 2, 2011
download jstl

nothing
A.K. Dutta
February 20, 2012
standard.jar and jstl.jar

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> gives error for Contact.jsp If standard.jar and jstl.jar is required in WEB-INF/lib please do provide the same ....
Mani
May 22, 2012
Jstl

good
lastname firstname
September 12, 2012
download

Ready to implement the JSTL Features, need jstl.jar
rajkumar
October 19, 2012
hi

good
maamad
November 2, 2012
JSTL

download jstl
suprasanna Ekka
September 10, 2013
I am interested to do service

Now I am working at hindalco industries ltd hirakud(smelter)weighbridge computer opperator under S.L.V.Security pvt ltd.previously Iwas working in Tops, Security for last five years.
DMCA.com