Prerequisite OS: Win2000 Tomcat has been configured (Tomcat can go to http://jakarta.apache.org/tomcat download) Start actual combat 1. Preparing JSTL to http://apache.towardex.com/jakarta/taglibs/standard/ Download JAKARTA-TAGLIBS-STANDARD-CURRENT.ZIP becomes Jakarta-Taglibs-Standard-1.1.1
2. Preparing the web development directory, such as my web directory is h: / webapp / myweb / (of course you can put your web application in% Tomcat_home% / WebApps /), called work directory Working Folder, in the working directory H: / WEBAPP / MYWEB / Under WEB-INF / LIB, Web-INF / CLASSES
3. Copy the .jar files Two JAR files under jakarta-taglibs-standard-1.1.1 / lib / below: Standard.jar and JSTL.jar files to / web-inf / lib /
4. Copy the .tld file to copy 8 TLD type files under Jakarta-Taglibs-Standard-1.1.1 / TLD / under "Working Folder / Web-INF /"
5. Establish a web.xml file in / web-inf /ne: XML Version = "1.0" eNCoding = "ISO-8859-1"?>
7. Open Tomcat, debug, my output is
Welcome to your first browser that uses to JSTL you are using is: Mozilla / 4.0 (Compatible; Msie 6.0; Windows NT 5.0) David O'Davies Note: If your TLD file is 15, Changes in
WEB-INF /:
/ lib directory web.xml configuration descriptor file / class content 8 TLD file web-inf / lib /: all JAR package files, including Standard.jar and JSTL.jar web-inf / class /: servlet and javabeans file compilation Post-class file