1. Tomcat installation
Download URL: http://archive.apache.org/dist/tomcat/
Tomcat version: 64-bit 8.5.31
![1662115143372629.png Java Web dynamic website development tutorial](https://img.php.cn/upload/image/652/680/571/1662115143372629.png)
![166211515714420Java Web dynamic website development tutorial Java Web dynamic website development tutorial](https://img.php.cn/upload/image/152/121/440/166211515714420Java%20Web%20dynamic%20website%20development%20tutorial)
![166211516562737Java Web dynamic website development tutorial Java Web dynamic website development tutorial](https://img.php.cn/upload/image/911/185/198/166211516562737Java%20Web%20dynamic%20website%20development%20tutorial)
## Tomcat environment variable configuration
- In the advanced environment configuration of the computer, find the environment variable
![166211528113737Java Web dynamic website development tutorial Java Web dynamic website development tutorial](https://img.php.cn/upload/image/950/807/410/166211528113737Java%20Web%20dynamic%20website%20development%20tutorial)
- Click New in System Variables, enter the variable name and value, and click OK, as shown below:
![166211532776767Java Web dynamic website development tutorial Java Web dynamic website development tutorial](https://img.php.cn/upload/image/729/744/965/166211532776767Java%20Web%20dynamic%20website%20development%20tutorial)
![1662115388963519.png Java Web dynamic website development tutorial](https://img.php.cn/upload/image/419/676/346/1662115388963519.png)
## Variable name: CATALINA_HOME Variable value: the root directory of tomcat, which is the upper directory of bin in path Click Edit----New, enter the bin directory path, as shown below:
![166211542086766Java Web dynamic website development tutorial Java Web dynamic website development tutorial](https://img.php.cn/upload/image/380/841/601/166211542086766Java%20Web%20dynamic%20website%20development%20tutorial)
![166211545239446Java Web dynamic website development tutorial Java Web dynamic website development tutorial](https://img.php.cn/upload/image/940/393/512/166211545239446Java%20Web%20dynamic%20website%20development%20tutorial)
Verification is successful :-
## (1) Win R key combination, enter startup.bat, start the service
(2) In the browser, enter localhost:8080 or 127.0.0.1:8080, If the interface shown in the figure below appears, it means that the tomcat environment variables are configured successfully.
2. JSP project creation steps
Installation conditions: idea software, tomcat8.5.31, jdk1.8
-
1. Open idea, create a new ordinary java project in file ->new ->project, or select New Project, as shown in the figure below:
![166211552914915Java Web dynamic website development tutorial Java Web dynamic website development tutorial](https://img.php.cn/upload/image/253/789/534/166211552914915Java%20Web%20dynamic%20website%20development%20tutorial)
![166211556351232Java Web dynamic website development tutorial 1Java Web dynamic website development tutorial](https://img.php.cn/upload/image/392/725/630/166211556351232Java%20Web%20dynamic%20website%20development%20tutorial)
![1662115584343489.png 1Java Web dynamic website development tutorial](https://img.php.cn/upload/image/300/681/359/1662115584343489.png)
2. Right-click on the project name and in the Add Framework Support option, check Web Application and click OK. ![166211563951116Java Web dynamic website development tutorial 1Java Web dynamic website development tutorial](https://img.php.cn/upload/image/881/930/171/166211563951116Java%20Web%20dynamic%20website%20development%20tutorial)
The picture after completion is as follows:
Each version is different, and it will be different when creating the project.
The above is the detailed content of Java Web dynamic website development tutorial. For more information, please follow other related articles on the PHP Chinese website!
Statement: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