Running a Maven web project in eclipse was giving errors on jsp pages:
javax.servlet.jsp.PageContext cannot be resolved to a type
javax.servlet.jsp.JspException cannot be resolved to a type
The server was running fine, even the project was running as expected. But eclipse keeps on showing the red crosses on jsp pages.
It was because the project didnt understand the jsp syntax correctly.
To remove this error simply add:
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.2.1</version>
</dependency>
After compiling the the errors gone away.
0 Comment(s)