By: Grenfel Emailed: 1731 times Printed: 2344 times
If you are running Tomcat 5.0 or 5.5, you can download JSF from http://java.sun.com/j2ee/javaserverfaces/download.html . If you want to install only the JSTL, you can download it from the Jakarta project website ( http://jakarta.apache.org/taglibs ). Alternately, you can get it by downloading the JWSDP from Sun ( http://java.sun.com/webservices/jwsdp ).
There are two ways that you can make the JSF and JSTL libraries available to your web application running in Tomcat. Both require putting the following eight JAR files, which are located in the lib directory of each distribution, into a location that can be accessed by the server or the web application:
• Six JSF JARs: commons-beanutils.jar, commons-collections.jar,
commons-digester.jar, commons-logging.jar, jsf-api.jar, and jsf-impl.jar
• Two JSTL JARs: jstl.jar and standard.jar
One way to make API libraries available to a web application is to place them into the WEB-INF\lib directory of the web application. Then only that application will have access to those libraries. If you have another JSF application, that application would also need access to those files in its own WEB-INF\lib directory.
Alternatively, if you have several JSF applications, you can put the JAR files into a common location. For Tomcat, that location is %TOMCAT_HOME%\common\lib. When the JAR files are located in the common directory, then every application in the application server has access to them. Note that if you copy the JAR files into the common directory while the server is running, you may need to restart the Tomcat server so the new JAR files can be loaded.
View Tutorial By: ismail at 2011-03-16 04:08:53
View Tutorial By: John at 2013-01-10 14:21:30
Most Viewed Articles (in JSF )
Most Emailed Articles (in JSF)