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