Javax.servlet.jsp cannot is resolved to a type,javax.servlet

Source: Internet
Author: User

It may be that the JDK does not include the Servlet-api.jar package, and the package found in Tomcat is copied to the Java project.

Project name--right-click

Property--> selection

Java Build path--> Selection

ADD External jars--> Select

Enter the path of the Servlet-api.jar. The package is found in tomcat with search lessons.

Javaxservletjspjspexception cannot is resolved to a type Javaxservletjsppagecontext cannot be

Have you configured the JSP package to Jdk/jre/lib/ext?

After importing the MyEclipse project into Eclipse Luna, there was an inexplicable error, note: Eclipse Luna is a newly refurbished one.

Error Description: JSP page quoted JS error, Mouse put up after the hint: javax.servlet.jsp cannot be resolved to a type. Picture for proof:

Similar to the below there is a red wavy line error, a lot of JSP pages have, but also different.

Workaround:

Click the menu bar: window→preferences→validation, find the "JSP Syntax Validator" item on the right, and remove the √ after the item. Click OK, get it done!!

Javax.servlet.jsp cannot is resolved to a type,javax.servlet

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.