Create a Tomcat server + JSP instance in Eclipse, and then use eclipsetomcat.

Source: Internet
Author: User

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)

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.