For starters, it's a good choice to implement JSP and Servlet,tomcat. Tomcat is a product of the Apache organization, 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, extract to a directory, I use F:OMCAT32B4 as an example.
Third, the configuration
Select My Computer on the desktop (right)
Senior
Environment variables
In the system variable---> NEW
Enter in variable name: java_home, input in variable value: F:jdk13 then OK;
In the system variable---> NEW
Enter in variable name: tomcat_home, input in variable value: F:OMCAT32B4 then OK;
OK, the configuration is over, the environment variable will be valid after you restart the computer.
Note that the other settings for Tomcat, if not necessary, can not be changed, I speak here is the simplest and feasible method, if you are not sure of the changes, or suggest not to change.
Four, test
(1) Start Tomcat:
Under f:omcat32b4in There is a: Startup.bat, run it, a DOS window will appear.
(2) Browse
Enter in browser: http://localhost:8080/See what effect (the Tomcat default port is 8080, you can change it without conflict), can you see a cute kitten (in fact, I personally think, whether from color or appearance, More like a tiger)
(3) Running
There are JSP examples and Servlet examples on this page, so let's test and run them yourself.
(4) Exit Tomcat
Under f:omcat32b4in There is a: Shutdown.bat, run it, will close the DOS window (if you insist on directly close this DOS window is OK, but, since there is this shutdown.bat, there should be a reason for its existence). (Source: viphot.com)
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.