Create a Tomcat server + JSP instance in Eclipse, and then use eclipsetomcat.
You are welcome to reprint it in any form, but be sure to indicate the source.
1. jdk installation and environment Configuration
Click to go To the tutorial
2. Install Eclipse
Click to go to the official website to download
After the. exe file is downloaded, many versions are available on the UI. Select version
3. Tomcat installation and environment Configuration
Click to go To the tutorial
4. Configure the Tomcat server
Note that I downloaded V9.0 and selected the environment based on the version I downloaded.
Find your installation address
5. Create instance demo2
If the Dynamic Web Project option is not available in the window, click Other at the bottom to search
Next-> next
Project file structure:
Right-click the WebContent folder to create a new index. jsp file.
1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 4 Default Code
1 <% @ page language = "java" contentType = "text/html; charset = UTF-8" 2 pageEncoding = "UTF-8" %> 3 <! DOCTYPE html PUBLIC "-// W3C // dtd html 4.01 Transitional // EN" http://www.w3.org/TR/html4/loose.dtd "> 4 Add content to run the instance on the server
Hello world!
Manually add a server tutorial for the new project (that is, if the server is not selected at the time of creation)