Where is this message from?
Are you compiling on the command line?
In an
IDE? Which?
Running a JSP page to get this error?
If you take a look in your server's lib directory you will see jsp-api and servlet-api there.
These are the libraries you need to include in your classpath when you compile your web application.
If doing it from the command line, you need to add those libraries into your classpath.
If doing it in an IDE, you can
- add the jar file from the server's lib directory to your project dependencies (not your WEB-INF/lib folder)
- most IDEs allows specifying of the server, and automatically import the required libraries.