"JAVA WEB" "The import Javax.servlet cannot be resolved" how to resolve __java

Source: Internet
Author: User


Today, one of the items in the MyEclipse in another machine is taken to the Java EE above my machine to continue.

After a good project was imported, two errors were reported.

1 · The Improt Javax.servlet cannot be resolved

2 ' Can not find ' the tag Library descriptor for ' Http://java.sun.com/jsp/jstl/core '

The first error is appearing in my Java file

The second error is appearing in my JSP file.

The first thing you can tell you is that both errors are due to the fact that you did not import the appropriate jar file.

Well, the reason theimprot javax.sErvlet cannot be resolved is the lack of server-running environment

The solution is:

In Eclipse, select your project, right-click on build path, and choose Configure Build Path,

Then select libraries on the right, select Add External JARs, and then find the installation path for Tomcat in your computer, select "Servlet-api.jar" under the Common\lib folder, and add click OK.

(Of course, if your machine doesn't have Tomcat, I think you know what to do)

-------------------------------------------------------------------

Then Can not find the tag Library descriptor for "Http://java.sun.com/jsp/jstl/core" solution is:

In Eclipse, select your project, right-click on build path, and choose Configure Build Path,

Then select libraries on the right, select Add External JARs, and then find the "Jstl-1.2.jar" in your computer and click OK.


Download address for this jar package: http://download.csdn.net/download/csdn_yudong/9279459


-------------------------------------------------------------------------

My site: https://neveryu.github.io/guestbook/

Github: Https://github.com/Neveryu

Sina Micro Blog: Http://weibo.com/Neveryu


 





More resources Please dms my Sina Weibo ...

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.