JAVA/JSP learning series 2_php tutorial

Source: Internet
Author: User
Java JSP Learning Series II. I. preface Tomcat is a good choice for beginners to execute JSP and Servlet ,. Tomcat is a product of the Apache organization, and sun's support for it is also quite good. II. Preface

Tomcat is a good choice for beginners to execute JSP and Servlet ,. Tomcat is a product of the Apache organization, and sun's support for it is also quite good.

II. download and install

JAVA official site: jakarta.apache.org, which is also widely used in China.

You can download this link: http://jakarta.apache.org/builds/atat/release/. what I download is tomcat32b4.

After the download, decompress the package to a directory. here I will use F: omcat32b4 as an example.

III. configuration

Right-click my computer on the desktop)

Advanced

Environment variable

Go to "system variables" ---> "new"

Enter JAVA_HOME in the variable name and F: JDK13 in the variable value, and then click OK;

Go to "system variables" ---> "new"

Enter TOMCAT_HOME in the variable name and F: omcat32b4 in the variable value, and then confirm;

Okay. after the configuration is complete, the environment variable will be valid only after the computer is restarted.

Note that other Tomcat settings can be left unchanged if not necessary. here I will talk about the simplest and most feasible method. if you are not sure about your changes, we recommend that you do not change it.

IV. test

(1) start tomcat:

Run startup. bat under F: omcat32b4in and a Dos window appears.

(2) browsing

Enter http: // localhost: 8080/in the browser to check the effect. (the default Tomcat port is 8080. you can change it without conflict ), is it possible to see a cute kitten (in fact, I personally think, whether in color or look, it is more like a tiger)

(3) run

On this page, JSP Examples and Servlet Examples are available. now, test and run them on your own.

(4) exit tomcat

There is a shutdown under F: omcat32b4in. bat, run it, it will close the Dos window (if you insist on closing the DOS window directly, but since there is this shutdown. bat, there should be reasons for its existence ). (Source: viphot.com)

Tomcat is a good choice for beginners to execute JSP and Servlet ,. Tomcat is a product of the Apache organization, and sun's support for it is also quite good. II ,...

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.