In Window2003 assumes your JDK1.5 installation in D: / JDK, Tomcat5 is installed in D: / Tomcat
first step:
In my computer properties -> Advanced -> Environment Variables -> Added User Variables in User Variables of Administrator
Variable name: java_home Variable: D: / JDK
Variable name: Tomcat_home Variable: D: / Tomcat
Variable Name: Path Variable Name: D: / JDK; D: / JDK / BIN
Variable name: ClassPath variable:.; D: / JDK / lib; d: /jdk/tt.jar; d: /jdk/tools.jar; d: / tomcat / common / lib / mysql-connector-java .jar; D: / JDK / JRE / LIB; D: / Tomcat / lib
Step 2:
1> Modify D: / Tomcat/conf/catalina/localhost/root.xml file directory can change Tomcat root directory
Here is the root.xml file content I tied to the root directory of the JSP file in the D: / WWW directory.
XML Version = '1.0' Encoding = 'UTF-8'?>
Save Restart Tomcat Open IE Type http: // localhost: 8080 to access the JSP file that point to the root directory.
2> Add a virtual directory only need to create a new XML file that is newly created in the D: / Tomcat / Conf / Catalina / localhost / directory to save the Tomcat!
For example: In D: Newly built a virtual directory called WWW, www.xml is as follows:
XML Version = '1.0' Encoding = 'UTF-8'?>
Open IE Type http: // localhost: 8080 / WWW to access the JSP file that you point to the virtual directory
Step 3: In fact, Tomcat is already a JSP server, but if you want to use the same port, you can perform an ASP / ASP.NET / JSP file at the same time, please continue to watch Tomcat5 on IIS6