The setup of Eclipse and the preparation of the first applet

Source: Internet
Author: User

This eclipse operation must be completed after the configuration of the JDK environment variable, the download and configuration of the toccat, can be done smoothly. If you encounter difficulties in this operation can leave a message.

First, the setup of Eclipse before encoding

1. Click Window

2. Click Preferences under the Windows window

3. Pop this window and click on the JSP files under the Web and change the encoding (encoded) to UTF-8

Ii. Creating packages and servers

1. Click File, click New, and finally click Dynamic Web Project

2. First fill in the project name with a package name (forget to hit the arrow), then click Newruntime, click on the right window will pop up, and then select the Tomcat version in this window, and finally click on next

3. Look at the picture.

4. Look at the picture

5. The package is built, then click the link under Servers (service) to create the server

6. Select the version of Tomcat you downloaded, then click Next (Next)

7. Select the package name on the left and click Add

8. After the package name is displayed on the right, the add succeeds and then click Finish.

9. After displaying the servers (server), you can write the program.

Third, first build a Web page to play.

1. Right-click the webcontent in the package directory, and then new (new) a JSP file

2. When naming JSP files. JSP cannot be deleted or modified

3. Then write down the code in the red box, and finally press Ctrl+s to save the code, and then I'll explain the difference between the two output modes.

4. Run the stage, find the file you write the code, then right click on it, then select Run as (running), then select the first (run the server)

5. Direct Click Next (Next step)

6. Select the package where you want to run the file, then click Finish

7.look! look! Hello sister is not displayed on the page, and Hello word! display in the console

8. Finally, view your Web page in the browser.

The setup of Eclipse and the preparation of the first applet

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.