Detailed steps for creating a dynamic JSP website environment

Source: Internet
Author: User

Detailed steps for setting up the latest simple and practical JSP dynamic website environment are as follows:

Content tip: the JSP (Java Server Pages) introduced by Sun is a dynamic web page development technology executed on the Server, which is based on Java technology. When executing JSP, you need to set up an engine for compiling JSP Web pages on the Web server. There are multiple ways to configure the JSP environment, but the main task is to install and configure the Web server and JSP Engine, and introduce the solution to build the most simple and high-quality JSP running environment.

I. Introduction to related software

1. JDK: the software development tool of Java2 is the basis of Java applications. JSP is based on Java technology, so JDK must be installed before configuring the JSP environment.

2. UFO: the newly released server software supporting jsp, which is used as an independent Web server. That is, static pages and dynamic pages are supported, and the processing of these two pages is fast. However, the software itself is robust and will not cause memory leakage or server downtime. It is the first choice for beginners to deploy and configure environment variables.

2. Software Download

1. JDK1.5.0

Version: JDK1.5.0 _ 16 (both JDK1.5.0 and later versions are supported)

Address: http://java.sun.com/javase/downloads/index_jdk5.jsp

2. UFO 0.999

Version: 0.999 (1.79 MB)

Address: http://www.gm365.com Home Page

3. Preparations before configuration

(1) Prepare a JSP webpage for testing

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

Reference content is as follows:

(2) install JDK1.5.0 _ 16

1, this needless to say that everyone will directly run the downloaded jdk-1_5_0_16-windows-i586-p file, according to the installation wizard to install to a directory, such as install to D: \ DK1.5.0 _ 16.

2. You only need to do the following without adding environment variables:

Open the setclasspath. bat file in the bin directory in UFO.

A: In Windows, open the bin directory in UFO and edit setclasspath. insert a row in the bat file: set JAVA_HOME = D: \ jdk1.5.0 _ 16 (set JAVA_HOME to the JDK installation directory on your computer), modify it, And then tap startup. bat can start UFO;

B: In the Linux operating system, you can directly start UFOs by typing./startup. sh;

4. Now we can perform the overall test.

Take test. jsp as an example: place test. jsp in the d: \ UFO \ webapps \ examples \ jsp directory to start UFO. Open your browser and enter http: // localhost: 80/examples/jsp/test. jsp in the address bar,

You will see Hello World! .

V. Conclusion

Setting up the running environment of JSP is the basis for learning JSP technology. This method is based on the latest software UFO configuration, because UFO has done a good job of configuring environment variables in advance, therefore, it is very easy to set up the JSP runtime environment, which is very helpful for website development (especially for newcomers. Developers must experience the performance of new software.

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.