JSP (Java Server Pages) is based on Java technology and add JAVA Code (Scriptlet) and JSP tag (TAG) to the traditional web html file (.htm, .html), which constitutes a JSP page (.jsp ). When the web server encounters a request to access the JSP page, perform the segment of the program, and then return the execution result in the HTML format to the customer. All program operations are executed on the server side, and only the results transmitted to the client on the network. JSP technology is a completely unrelated design, including its dynamic web page with the underlying Server component design. Because of this, you can debug programs in a Windows environment, and then load the program to your Linux server to run, and the execution speed is far from the previous server-side language. Configuring JSP can have a lot of ways if you already have a web server, such as Netscape Enterprise Server and FastTrack Server, Microsoft Internet Information Server (IIS), and Personal Web Server (PWS), and Apache, more typical methods. It is use JRUN (http://www.allaire.com/products/jrun/), which can be added as an attachment to your web server. If you are using Apache, you can also choose the Java version of the Apache server, which contains the latest JSWDK. This article describes a common JSP configuration method, whether you are in the Windows or Linux platform, no matter whether you have a Web Server installed, this method is universal. Step 1: Download the required software 1.jsdk1.2.2 download address: http://java.sun.com/products/jdk/1.2/2_005-win.exe 20594684 byte for Linux JDK1_2_2-Linux i386.tar.gz 21580986 byte 2.jswdk1.0.1 Download address: http://java.sun.com/prodcts/jsp/Download.html for Windows jswdk1_0_1-win.zip 763414 byte for Solaris (available for Linux JSwDK1_0_1-Solsparc.tar.z 953434 Byte The page is on the page, you need to answer some simple questions, you can get two version of JSDK and JSWDK, a total of four files. Step 2: Installing JSDK JSDK Under Windows and Linux, installation methods are as follows: 1. Windows installed, double-click JDK-1.2.2_005-win.exe and select a installation directory. 2.Linux installation, becomes the root user, select a directory, perform TAR ZXVF / Path / JDK1_2_2-linux-i386.tar.gz. The above installation directory must be recorded accurately, and it is used in the back configuration. Step 3: Install JSwdk 1.Windows Install, first you have to unlock the software that can unnip the zip compression package, then expand JSwDK1_0_1-win.zip and save it to a directory you like. 2.Linux Install, select a directory, perform TAR ZXVF / Path / Jswdk1_0_1-solsparc.tar.z.
Step 4: Configure environment variables 1.Windows NT, right-click "My Computer", select "Properties → Environment", then do three steps: (1) Add variable classpath, value to install JDK Path /Lib/Tools.jar, such as C: /jdk1.2.2/lib/tools.jar. (2) Add Java_Home variable, the value is the path to the JDK, such as C: /JDK1.2.2. (3) Modify the PATH variable, and add the path / bin installed to the JDK, such as C: /JDK1.2.2/bin. 2. Windows 98, run Sysedit, add, and modify variables. 3. LINUX, if Bash is used, you can enter directly on the command line: java_home = "/ Home / Look / JDK1.2.2" classpath = "/ home / look / jdk1.2.2/2/ Tools.jar" Export ClassPath Path = "$ Path: /Home/look/jdk1.2.2/bin" In order to avoid re-enter each Reboot, you can put it in / etc / profile. Step 5: Configure the JSWDK to install the JSWDK directory, find the webserver.xml, open it with the text editor, you can modify some of the commonly used configurations, of course, you can also change, the default configuration can make JSwdk run well. 1.Port NMToken "8080" This line indicates the port number you need to use by JSWDK, if you don't have other web servers, you can change it to 80 or any other non-conflictful port. 2.