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