Compilation error in Eclipse Indigo: javax.servlet.jsp.JspException, javax.servlet.jsp.PageContext cannot be resolved for type

I get the following errors when adding the following EL to jsp in indigo eclipse.

<form action="${pageContext.request.contextPath}/user"> ... </form> 

However, the application works fine without any compilation error. I double check servlet-api 2.5 and jst 1.2 jars are in class path in Eclipse IDE.

If I delete ${pageContext.request.contextPath} , it will not show any errors.

Can someone help me rid me of these errors?

+3
eclipse jsp jstl
Jan 16 '12 at 11:26
source share
1 answer

Someone suggested adding the following dependency , and it worked for me.

 <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> </dependency> 
+5
Jan 16 '12 at 13:45
source share



All Articles