The following is the use of Tomcat as a JSP engine, with Tomcat, Apache, IIS three kinds of Web servers to tell the 3 kinds of building JSP operating environment scenarios.
Introduction of related Software
1, J2SDK:JAVA2 software development tools, is the basis of Java applications. JSP is based on Java technology, so you must install J2SDK before you configure the JSP environment.
2. Apache server: A common Web server developed by the Apache organization that provides Web services.
3, Tomcat server: Apache development of a JSP engine, itself has the function of a Web server, can be used as a stand-alone Web server. However, when Tomcat handles static HTML pages as a Web server, not as fast as Apache or as robust as Apache, we typically use Tomcat in conjunction with Apache so that Apache can service static page requests for the site, Tomcat, as a dedicated JSP engine, provides JSP parsing for better performance. And Tomcat itself is a subproject of Apache, so Tomcat provides strong support for Apache. For beginners, Tomcat is a good choice.
4, Mod_jk.dll:Apache organization Jakarta Project team developed to enable Apache support Tomcat Plug-ins. With this plugin, Tomcat is able to seamlessly connect to Apache.
5, Tc4ntiis.zip:Apache organization Jakarta Project team developed to enable IIS to support Tomcat Plug-ins.
Second, software download
1, J2sdk webjx.com
Version: j2sdk1.4.1 (35.9MB)
Address: http://java.sun.com/j2se/1.4.1/download.html
Http://www.timefound.com.cn/info/data/resource/download/j2sdk-1_4_1_01-windows-i586.exe 20070108
2, Apache2
Version: Apache2.0.43 (6.69MB) Address: http://www.apache.inetcosmos.org/dist/httpd/binaries/win32/
3, TOMCAT4
Version: 4.1.21 (8.33MB)
Address: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/
http://apache.seekmeup.com/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.exe20070108
http://tomcat.apache.org/download-55.cgi#5.5.20
4, Mod_jk.dll: (136KB)
Address: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/
5, Tc4ntiis.zip (220KB)
Address: Http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/tc4ntiis.zip
All of the above are free software.
III. Preparation before the configuration
(a) Prepare a test JSP page
Open a text editor such as Notepad, enter the following code, and save it as test. JSP (note that the extension is. jsp).
The following are the referenced contents:
<HTML>
<HEAD>
<TITLE> JSP test Page </TITLE>
</HEAD>
<BODY>
<%out.println ("</BODY>
</HTML> (ii) installation of J2SDK
Regardless of the scenario, you must complete the installation of the J2SDK before installing and configuring the JSP engine.
1. Installation J2SDK
Under Windows, run the downloaded J2sdk-1_4_1_01-windows-i586.exe file directly, and install to a directory based on the installation wizard, such as installing to F:\J2SDK 1.4.1;
2. Add Environment variables
(1) If your operating system is win 98, you can edit Autoexec.bat directly with Notepad, add the following command line:
The following are the referenced contents:
Path=%path%;f:\j2sdk1.4.1\bin
SET java_home=f:\j2sdk1.4.1
SET Classpath=f:\j2sdk1.4.1\lib\tools.jar
After saving, restart the computer so that the environment variables you add are valid.
(2) If your operating system is Win2000, then right click "My Computer", in the pop-up menu select "Properties" → "system features" → "Advanced" → "Environment variables", Pop-up Environment Variables dialog box, you can edit the system environment variables. Add path, Java_home, and classpath three variables with the same value as above.
Current 1/2 page
12 Next read the full text