Step 1: Add a server
1.1 In window-preference-server-runtime environment, select Add to add a server
1.2 select the corresponding version and click Next
1.3 name and select the Tomcat path.
Step 2: Create a JSP site
2.1 file-New-dynamic web project
2.2 name and configure
2.2 name and click Next
Step 3: Configure the server
3.1 right-click servers and choose new-server.
3.2 select the corresponding tomcat version and name it next
3.3 Add the project using the server, and click Finish.
3.4 important: double-click the server you Just configured, select "use tomcat installation (take control of Tomcat installation" in server locations, and press Ctrl + S to save
3.4 The configuration is complete. Right-click the server and select start to start the service.
Step 4: debug the JSP webpage
4.1 right-click the webcontent directory of the JSP site created in step 2 and create a new JSP file
4.2 enter and save some content in the <body> </body> file.
4.3 right-click the file and choose run as-run on server. The page is displayed on the right.