Common errors when Eclipse imports a project

Source: Internet
Author: User
Question one, the import Javax.servlet cannot be resolved
Method One: This package is in Tomcat, not in the JDK. Add the Jsp-api.jar and Servlet-api.jar of the Tomcat's Lib folder to the Classpath, you can import the package, you must add Jsp-api.jar, the Internet may be said to add Servlet-api.jar can , this package just unlocks the error, but may access the database after the page shows the struts problem method two:
One, right key project build path--->configure build path----->add Library----->server Runtime---> Specify to the currently running Tomcat environment
Second, right key item click Properties to find targeted runtimes after clicking on him, the right-hand side will have Apache Tomcatv7.0 or other server check on it.
Question two, Can not find the tag library descriptor for "Http://java.sun.com/jsp/jstl/core"

Method: The Jstl.jar and Standard.jar files are missing from the project, putting the two jar files into the Lib directory or under the Tomcat's Lib directory can
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.