Home > Backend Development > PHP Tutorial > JAVA/JSP Learning Series 2_PHP Tutorial

JAVA/JSP Learning Series 2_PHP Tutorial

WBOY
Release: 2016-07-21 16:11:18
Original
835 people have browsed it


1. Foreword

For beginners, Tomcat is a very good choice to execute JSP and Servlet. Tomcat is a product of the Apache organization, and Sun supports it quite well.

2. Download and install

The download address is the official JAVA site: jakarta.apache.org, which is also available in China.

You can download it from this address: http://jakarta.apache.org/builds/tomcat/release/. I downloaded the Tomcat32b4 version.

After downloading, unzip it to a directory. I use F: omcat32b4 as an example.

3. Configuration

Select "My Computer" on the desktop (right click)

Advanced

Environment variables

In "System Variable"--->"New"

Enter: JAVA_HOME in the variable name, enter: F:JDK13 in the variable value and then confirm;

In "System Variables"---> ;"New"

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

Okay, the configuration is complete, you need to restart the computer before the environment variables can Effective.

Note that other settings of Tomcat can be left unchanged if not necessary. What I will talk about here are the simplest and feasible methods. If you are not sure about your changes, it is still recommended not to change them.

4. Test

(1) Start tomcat:

There is one under F: omcat32b4 in: startup.bat, run it, a Dos window will appear.

(2) Browse

and enter in the browser: http://localhost:8080/ to see what the effect is (Tomcat’s default port is 8080, as long as there is no conflict, you Can be changed), can you see a cute kitten (in fact, I personally think that it looks more like a tiger in terms of color and appearance)

(3) Run

There are JSP Examples and Servlet Examples on this page. Well, test and run them yourself.

(4) Exit tomcat

There is one under F: omcat32b4 in: shutdown.bat, run it, the Dos window will be closed (if you insist on closing the DOS window directly, it is also possible, However, since there is this shutdown.bat, there should be a reason for its existence). (Source: viphot.com)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313951.htmlTechArticle1. Foreword For beginners, Tomcat is a very good choice to execute JSP and Servlet. Tomcat is a product of the Apache organization, and Sun's support for it is also quite good. 2....
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template