How to install a JSP server under Windows 2000

Source: Internet
Author: User
Keywords Applications JSP installation Java server

JSP Virtual Host

Technology provides a simple and quick way to create Web pages that display dynamically generated content. JSP technology is designed to make it easier and faster to build web-based applications that work with a variety of Web servers, application servers, browsers, and development tools. This provides a comprehensive overview of JSP technology, describing its development background and the overall objectives of the technology. Also, in a simple example, a key component of a page based on JAVATM technology is described.

Developing web-based applications: Background

In the short history of the World Wide Web, it has evolved from a network that largely displays static information to an infrastructure for trading and book-buying operations on stocks. In a variety of applications, there seems to be no limit to the web-based client that might be used. Browser-based client based applications have several advantages over traditional client/server based applications. These benefits include almost unlimited client access and extremely simplified application deployment and management (to update an application, managers need to change only one server-based program, not tens of thousands of applications installed on the client). In this way, the software industry is rapidly moving towards a multi-tiered application that builds browser-based clients.

These fast-growing and sophisticated web-based applications require the development of technical improvements. Static HTML is a good choice for displaying relatively static content; The new challenge is to create interactive web-based applications in which the content of the page is based on the user's request or the state of the system, rather than the predefined text.

An early solution to this problem is to use the CGI interface, where developers write separate programs related to interfaces, and web-based applications that invoke the former through a Web server. This scenario has a serious extensibility problem--each new CGI requires the addition of a process on the server. If multiple users access the program concurrently, these processes will consume all of the available resources on the Web server and degrade the system to a very low level.

Everyone who touches the JSP server basically starts with the installation of the JSP, because the JSP is not like the ASP, there is almost no installation process, and not like PHP, there is an automatic installation of the package, JSP installation is more cumbersome, manual steps are very many, following our step-by-step explanation:

First you have to download a few software: JDK, Apache, and Tomcat. The JDK (Java Development Kit) is the foundation of all Java applications, so you can say that all Java applications are built on this. It is a set of APIs, or some Java Class. I learn JSP at that time the latest version of the jdk1.x version, then Sun (solar Microelectronics, Java development Company) recommended the use of j2re, is now basically using the Java EE more people.

I believe you have heard that Java portability is very good, can be applied to a variety of system platforms, so many enterprises for the cost or security considerations also have the JSP built on Linux, some old-funded technicians think Linux+tomcat+apache is the perfect web platform, However, I think we should also consider that the development of the following Linux is not many technical personnel and development is more difficult than the Windows platform, development efficiency is greatly limited, so the web based on the Linux platform is actually in the late development and maintenance costs are very large, So I'm just saying how to install the JSP under WIN2000.

One: JDK (or Java) installation

Download JDK

Can go to Sun's official website to download JDK or Java EE, using similar methods, here to JDK as an example to explain: java.sun.com, there are many places in the country can be.
Under Windows, run the. exe file directly, and install to a directory such as C:JDK.

Configuring the System

Select My Computer on the desktop, right-advanced-environment variable,
Press new at System variable
In the variable name: CLASSPATH, enter the variable value:
C:jdklibdt.jar; C:jdklibtools. JAR; C:jdkbin
When you restart the computer after configuration, the environment variable takes effect.

Test

(1) Write a simple Java program with a text editor:
public class Hello {
public static void Main (String args]) {
System.out.println ("Hello world!");
}
}
This example is the famous "Hello World", its function is to show "Hello World".
Note: The file name must be "Helloworld.java" and case sensitive.
(2) Compile: Execute at DOS command prompt: (note case)
Javac Helloworld.java
If normal, the Helloworld.class file will be generated.
(3) Run: Execute at DOS command prompt: (note case)
Java Hello
Well, running Java hello should be a great "Hello world".

At this point, you have successfully configured the JDK, but the JDK is not able to execute the Web script and install Tomcat again.

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.