Detailed configuration of JSP dynamic website development environment page 1/2

Source: Internet
Author: User

The following uses Tomcat as the JSP Engine and uses tomcat, Apache, and IIS as the three web servers to describe how to build a JSP running environment.

I. Introduction to related software

1. j2sdk: Java2 software development tool, which is a Java applicationProgram. JSP is based on Java technology, so you must install j2sdk before configuring the JSP environment.

2. Apache server: a common web server developed by Apache to provide web services.

3. Tomcat server: a JSP engine developed by Apache. It has the Web server function and can be used as an independent web server. However, as a Web server, Tomcat does not process static html pages as quickly as Apache, nor is Apache robust. Therefore, we generally use Tomcat with Apache, apache provides services for website static page requests, while tomcat, as a dedicated JSP Engine, provides JSP parsing for better performance. Tomcat itself is a sub-project of Apache, so Tomcat provides powerful support for Apache. Tomcat is a good choice for beginners.

4. mod_jk.dll: Developed by the Jakarta project team of Apache to support Tomcat plug-ins. With this plug-in, Tomcat can be seamlessly connected to Apache.

5. tc4ntiis.zip: Developed by the Jakarta project team of Apache to enable IIS to support Tomcat plug-ins.

2. Software Download

1. j2sdk webjx. com

Version: j2sdk1.4.1 (35.9 MB)

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.69 MB) Address: http://www.apache.inetcosmos.org/dist/httpd/binaries/win32/

3. tomcat4

Version: 4.1.21 (8.33 MB)

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/

5366tc4ntiis.zip (220kb)

Address: http://members.ozemail.com.au /~ Lampante/howto/tomcat/iisnt/tc4ntiis.zip

The above are free software.

3. Preparations before configuration

(1) Prepare a JSP webpage for testing

Open a text editor, such as Notepad, and enter the followingCodeAnd save it as test. jsp (note that the extension is. jsp ).

Reference content is as follows:

<HTML>
<Head>
<Title> JSP test page </title>
</Head>
<Body>
<% Out. println ("</Body>
</Html> (2) install j2sdk

In either case, you must install j2sdk before installing and configuring the JSP Engine.

1. Install j2sdk

Run the j2sdk-00004_000001-windows-i586.exe file in windows and install it in a directory according to the installation wizard, for example, F: \ j2sdk 1.4.1;

2. Add Environment Variables

(1) If your operating system is WIN 98, you can use NotePad to directly edit autoexec. BAT and add the following command line:

Reference content is as follows:

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 added environment variables will be valid.

(2) if your operating system is Win2000, right-click "my computer ", select "properties"> "system features"> "advanced"> "environment variables" in the pop-up menu. In the displayed environment variables dialog box, you can edit the environment variables of the system. Add three variables: path, java_home, and classpath. The variable value is the same as the preceding one.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.