aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes install JSTL in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "install JSTL in Tomcat" Watch "install JSTL in Tomcat" New topic
Author

install JSTL in Tomcat

Jack Lam
Greenhorn

Joined: Jul 09, 2004
Posts: 17
Hello,

i would like to install JSTL in Tomcat.
i have download the JSTL file "jakarta-taglibs-src-20041214.zip" form
jakarta homepage and extract into c:\java\ folder.
but i found that my test.jsp page do not support JSTL tag

do i need to copy file in "jakarta-taglibs" folder to tomcat's
Tomcat 5.5\webapps\ROOT\WEB-INF\lib\ folder ?

thk a lot~

Jack


SCJP 1.4 , SCWCD (in progress)
Gabriel Forro
Ranch Hand

Joined: Apr 16, 2004
Posts: 59
Hi,

The JSTL lib (2 jar files, i.e. jstl.jar and standard.jar) is included in the Tomcat distribution.
You can find it in
${CATALINA_HOME}/webapps/jsp-examples/WEB-INF/lib
directory.
If You want to use JSTL in Your web application, there are 2 ways:
1. copy the above mentioned 2 jar files to the ${CATALINA_HOME}/shared/lib directory, and every web application deployed can use them.
2. copy the above mentioned 2 jar files to the WEB-INF/lib directory of Your web application. In this case the JSTL lib is "private" for the web application.


Gabriel
Jack Lam
Greenhorn

Joined: Jul 09, 2004
Posts: 17
yeah .... you are right...
it work now ~
thanks~
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: install JSTL in Tomcat