Home >Java >javaTutorial >Java Web dynamic website development tutorial

Java Web dynamic website development tutorial

P粉469731340
P粉469731340Original
2022-09-02 18:53:482562browse

1. Tomcat installation

  1. Download URL: http://archive.apache.org/dist/tomcat/

        Tomcat version: 64-bit 8.5.31

Java Web dynamic website development tutorial

Java Web dynamic website development tutorial

Java Web dynamic website development tutorial

##                        Tomcat environment variable configuration

  • In the advanced environment configuration of the computer, find the environment variable

Java Web dynamic website development tutorial

  • Click New in System Variables, enter the variable name and value, and click OK, as shown below:

Java Web dynamic website development tutorialJava Web dynamic website development tutorial

    ## 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:

Java Web dynamic website development tutorialJava Web dynamic website development tutorial

    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:

Java Web dynamic website development tutorial

1Java Web dynamic website development tutorial

1Java Web dynamic website development tutorial1Java Web dynamic website development tutorial2. Right-click on the project name and in the Add Framework Support option, check Web Application and click OK. 1Java Web dynamic website development tutorial

The picture after completion is as follows:

1Java Web dynamic website development tutorial 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