3

I am getting following errors while adding following EL in a jsp in eclipse indigo.

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

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

If I remove ${pageContext.request.contextPath} it doesn't show any errors.

Can anyone one help me to get me out of this errors?

Amit Patel
  • 15,609
  • 18
  • 68
  • 106

1 Answers1

5

Someone suggested to add following dependency and it worked for me.

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.0</version>
</dependency>
Community
  • 1
  • 1
Amit Patel
  • 15,609
  • 18
  • 68
  • 106