First, you need to open the Eclipse software first, and then click "File" >>> "new" >>> "Dynamic Web Project" in the toolbar, which means the new project is a WEB project
Tip: If "Dynamic Web Project" is not found, see the next step
If we can't find the "Dynamic Web project" option, it means that the Web project has not been established before, so we are not in the shortcut navigator, when we click "Other" this option
This interface pops up the query window, the content of the query is all the types of projects we can build, such as Java projects, Web projects, etc., can find a window query to get
We are going to build a Web project, so enter "Web" in the query input box, the following list all web related projects, now we Know "Dynamic WEB project" This type of project, with the mouse to select it, and then click on the "Next" button
This is the basic information to fill in the project, including the project name, the Project Runtime Server version, you can choose Tomcat or other can, see your project needs, here I enter a "test" to test the establishment of the project, after the input is complete, we click "Next" button
This window shows the Web project needs to compile the directory of Java files, the default is the SRC directory, this we do not need to change, directly click "Next"
Then pop-up window, show is our Web project, Web file related directory, is HTML or JSP and JS those Web-related file directory, the default is "WebContent", you can also modify the file name you want, note that there is a check box below, Indicates whether the Web. xml file is to be generated automatically
Web. xml: This file is the core file of the website and the portal of the Web project, the old version of Eclipse will have this file, but the new version of Eclipse can be used to annotate in Java code, so provide the user to choose whether or not to build, if it is novice best choice to build
Then we click on "Finish"
Here is the catalog result of our new Web project
Java Storage directory: SRC
Web Files directory: webcontent
Web configuration file: xml
Now, you can start your Java development journey.