Java/jsp Learning Series II _php Tutorial

Source: Internet
Author: User
First, preface

For beginners, implementing JSP and Servlet,tomcat is a good choice. Tomcat is an Apache-organized product, and Sun's support for it is pretty good.

Second, download, install

Download address for Java official site: jakarta.apache.org, domestic also more.

From this address can be downloaded: http://jakarta.apache.org/builds/tomcat/release/, I downloaded the tomcat32b4 version.

After downloading, unzip to a directory, I use F:OMCAT32B4 as an example here.

Third, the configuration

Select My Computer on the desktop (right-click)

Senior

Environment variables

In the system variables---> New

Enter in the variable name: Java_home, enter the value of the variable: f:jdk13 then OK;

In the system variables---> New

Enter in the variable name: tomcat_home, enter the value of the variable: F:OMCAT32B4 then OK;

OK, the environment variable will be valid after you restart the computer after the configuration is finished.

Note that the other settings for Tomcat, if not necessary, can not be changed, I am speaking here is the simplest and feasible method, if you are not sure of the changes, or suggest not to change.

Iv. Testing

(1) Start Tomcat:

Under f:omcat32b4in There is a: Startup.bat, run it, a DOS window will appear.

(2) Browse

Enter in the browser: http://localhost:8080/See what effect (tomcat default port is 8080, you can change it without conflict), whether you can see a cute kitten (in fact, I personally think, regardless of color or appearance, More like a tiger)

(3) operation

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

(4) Exit Tomcat

Under f:omcat32b4in There is a: Shutdown.bat, run it, will close the DOS window (if you insist on shutting down this DOS window is also possible, but since there is this shutdown.bat, there should be a reason for its existence). (Source: viphot.com)

http://www.bkjia.com/PHPjc/313951.html www.bkjia.com true http://www.bkjia.com/PHPjc/313951.html techarticle First , preface for Beginners, to implement JSP and Servlet,tomcat is a very good choice. Tomcat is an Apache-organized product, and Sun's support for it is pretty good. Two 、...

  • 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.