Cannot Resolve Method [JSP]

Answered

Screen Shot 2558-10-04 at 8.21.27 PM.pngScreen Shot 2558-10-04 at 8.27.28 PM.png

Why intellij cannot resolve these mthods that shown in the 1st picture ??
Even, when deploy and run all these methods work just fine ??

4 comments
Comment actions Permalink

Add your application server libraries to the module dependencies with Provided scope: http://www.jetbrains.com/idea/webhelp/configuring-module-dependencies-and-libraries.html .

For Tomcat you need TOMCAT_HOME\lib\jsp-api.jar file.

2
Comment actions Permalink

I also experience this issue. The provided solution above is not informative at all. Can you provide more sound solution please?

0
Comment actions Permalink

I finally managed to fix it by deleting the .Intellij setting (in my case, C:\Users\username\.IntellijIdea2017.2) and i have to again set the jdk and application server (tomcat) once again just like in the previous setting. This is a very annoying way to solve since i cannot find any other solution at all.

0
Comment actions Permalink

I also experienced this issue. I solved adding the following maven dependecy in the pom.xml (following the tip of Serge Baranov)

<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.1</version>
<scope>provided</scope>
</dependency>
1

Please sign in to leave a comment.