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