原因:

 创建jsp文件的步骤如下:

   出现"javax.servlet.http.HttpServlet" was not found on the Java) 报错信息就是因为没有进行步骤2

 (步骤2在创建servlet时无需选择)

    创建jsp文件时报错,"javax.servlet.http.HttpServlet" was not found on the Java)

 

       解决方案:

      点击项目名,鼠标右击,build path ——>configure build path

       创建jsp文件时报错,"javax.servlet.http.HttpServlet" was not found on the Java)

       选择add libary——> server runtime

      创建jsp文件时报错,"javax.servlet.http.HttpServlet" was not found on the Java)

相关文章:

  • 2021-06-26
  • 2022-12-23
  • 2021-06-09
  • 2021-04-26
  • 2021-09-10
猜你喜欢
  • 2021-08-25
  • 2021-05-21
  • 2021-11-14
  • 2021-07-19
  • 2021-12-09
  • 2021-09-24
  • 2021-08-02
相关资源
相似解决方案