Eclipse Java EE installation and creation of Web projects

Source: Internet
Author: User
Tags tomcat server

First, according to http://www.itnose.net/detail/6139800.html Basic installation success
II. Create a project according to Http://www.cnblogs.com/freebsd-pann/archive/2011/11/05/2236977.html

Three, the process encountered several problems:

1. Item navigation tree not found Project Explorer

Workaround: Project Explorer, window, show view

2. a JSP file was created and edited in the new project, and an error message appears at the bottom of the JSP page:
the superclass "Javax.servlet.http.HttpServlet" is not found on the Java Build Path

Cause: No tomcat runtime related classes were added to the project
Workaround:
First, right-click Web Project-Properties or build Path->java build path->libraries-> Add libray...->server Runtime-"Tomcat Server
Then, switch to Orader and Export in the Java Build path interface and select Tomcat.
See: http://blog.csdn.net/testcs_dn/article/details/36455669

3. running Chinese garbled

Cause: Incorrect file header encoding format
Solution: <%@ page language= "java" contenttype= "text/html; Charset=utf-8 "pageencoding=" UTF-8 "%>

Note : cannot be written as UTF8
The meta charset in HTML can be written UTF8

Eclipse Java EE installation and creation of Web projects

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.