Eclipse + Tomcat Development environment configuration

Source: Internet
Author: User
Tags java web

I. Download Tomcat and Eclipse

Download Tomcat

: http://tomcat.apache.org/download-70.cgi

After downloading, unzip as

Download eclipse

: http://www.eclipse.org/downloads/eclipse-packages/

After downloading, unzip as

Two. Configuring the Environment

1. Open Eclipse and create a new dynamic Web Project. Add the project name and Target Runtime.

2. Create a new JSP file in WebContent index.jsp

3. Edit File Contents

1 <%@ Page Language="Java"ContentType="text/html; charset=iso-8859-1"2 pageencoding="iso-8859-1"%>3 <!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd ">4 <HTML>5 <Head>6 <Metahttp-equiv= "Content-type"content= "text/html; charset=iso-8859-1">7 <title>Insert Title here</title>8 </Head>9 <Body>Ten <Center>First Java Web Test</Center> One </Body> A </HTML>

4. Click Run

5. Running Results

Eclipse + Tomcat Development environment configuration

Related Article

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.