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?

1

1 Answer 1

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> 
Sign up to request clarification or add additional context in comments.

1 Comment

@nitind Yes, it is a maven project.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.