IntelliJ IDEA Ultimate - JSP Import Servlet

Answered

This may be a dumb question, but I am new to IntelliJ and I cannot seem to figure this out with JSP.

I have a test JSP that imports these:

<%@ page import = "java.io.*, java.util.*, javax.servlet.*, java.text.*,java.sql.*" %>

When I load them in IntelliJ Ultimate (The paid version of the app), the program is unable to resolve the servlet class. How do I go about including that in the classpath? 

I have already added Java 1.8 as the SDK for the project, which is why the other classes/packages are found/resolved, I just can't seem to get the last piece figured out.

Thanks!

0
2 comments

Add application server (like Tomcat) as the Provided dependency to your module: https://www.jetbrains.com/help/idea/working-with-module-dependencies.html .

These classes are normally provided by the app server and are not configured by default unless you've added the app server during the project configuration.

0
Avatar
Permanently deleted user

Sounds easy enough, thanks!

0

Please sign in to leave a comment.