By: GrenfelYou will need to obtain and install a JSF implementation, and the JSP Standard Tag Library (JSTL) reference implementation. We will use the JSF reference implementation from Sun. If you have an implementation from some other vendor, consult the documentation for that implementation for installation instructions.
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.
1. I have maked all you said and when I open jsp I am writing <f:view> and <h:...> but it i
View Tutorial By: John at 2013-01-10 14:21:30
2. I have maked all you said and when I open jsp I am writing <f:view> and <h:...> but it i
View Tutorial By: ismail at 2011-03-16 04:08:53
3. need jars
View Tutorial By: krishna at 2011-02-25 07:06:15
Comment on this tutorial
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Struts Vs JSF (A comparison of Struts against JSF)
Calling Multiple Listeners in JSF
<convertNumber> and <convertDateTime> in JSF
faces-config.xml to DirectTraffic in the JSF Application
JSF - TreeNode.setID gets IllegalArgument Exception
Servlet error : java.lang.IndexOutOfBoundsException (JSF RI 1.1_01: IndexOutOfBoundsException)
How to open a new browser window from my JSF page?
Accessing Context Data in Beans using JSF
Install and Deploy JBoss Application Server
Controlling Page Navigation in JSF - Static and Dynamic Navigation