使用Eclipse建立了一个Javaweb工程,JSP页面顶端出现“红色”的报错信息:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path。
创建Java web工程 jsp报错:(..javax.servlet.http.HttpServlet was not found on the Java Build Path)

解决方法:

  1. 是否在Eclipse配置Tomcat服务器
    创建Java web工程 jsp报错:(..javax.servlet.http.HttpServlet was not found on the Java Build Path)如果没有部署先部署一下
    创建Java web工程 jsp报错:(..javax.servlet.http.HttpServlet was not found on the Java Build Path)
  2. 如果还出现错误,不妨先刷新一遍,如果没有生效。创建Java web工程 jsp报错:(..javax.servlet.http.HttpServlet was not found on the Java Build Path)打开项目属性,找到图片对应的过程,重新选择对应的版本,设置一下,在刷新。

ok!

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2021-06-26
  • 2021-05-08
  • 2021-09-10
  • 2021-10-06
猜你喜欢
  • 2021-08-02
  • 2021-12-05
  • 2021-05-24
  • 2021-09-23
相关资源
相似解决方案