After installing the Java SDK, you also need to set some system variables. You can set the system variables in system properties-advanced-environment variables.
JAVA_HOME = JAVA installation directory
CLASSPATH =...
Library path, which can be a directory or jar file, such as C: \ j2sdk1.4.0 _ 01 \ lib \ dt. jar; d: \ java. Note that the two paths are separated by semicolons.
To use tomcat, set CATALINA_HOME = TOMCAT installation directory
To use jdbc, javamail, and other component libraries in jsp, you must copy the required jar library files to tomcat \ common \ bin.
****************** Updated on 2005.7.20 ****************** **************
CLASSPATH
Full path: % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tool. jar; % JAVA_HOME % \ lib \
Tools. jar; % CATALINA_HOME % \ common \ lib \ servlet-api.jar; % CATALINA_HOME % \ common \ lib \ jsp-api.jar
If an unable to compile file for jsp error occurs on the debug jsp page, you can set the tomcat startup settings and add the path of tools. jar to the startup parameters.
*************** Updated on 2005.7.23 ********************* ********
If you want your website to support jstl, you must add some files under web-inf.
Yes
To the http://www.apache.org/dist/jakarta/taglibs/standard/binaries/jakarta-
Download the taglibs-standard-1.1.1.zip, extract the jstl. jar and standard. jar from it and put it under the web-inf/lib directory
To copy the c. tlb file to the web-inf/tlds directory.
Add the web. xml file under web-inf. The file content is as follows:
<Taglib>
<Taglib-uri> http://java.sun.com/jstl/core </taglib-uri>
<Taglib-location>/WEB-INF/tlds/c. tld </taglib-location>
</Taglib>
This won't happen without recognizing <% @ taglib prefix = "c" uri = "http://java.sun.com/jstl/core" %>