How can I resolve this kind of error in jsp page?

15,078

You don't have Servlet-api.jar in your classpath of your webapplication project. Please add this jar to your Classpath.

Multiple Annotations found at this line:

This happens sometimes when DOM validation happens in the editor for JSP files as well

Share:
15,078
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    How can I resolve this kind of error in jsp page?

    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page import="java.sql.*" %>
    

    k, i understand ya, please answer my question?

    the error was:

    Multiple annotations found at this line: - The import javax.servlet cannot be resolved.

  • theblindprophet
    theblindprophet almost 8 years
    Your answer is very unclear, please review: stackoverflow.com/help/how-to-answer