美文网首页
Jsp页面报错The superclass "java

Jsp页面报错The superclass "java

作者: 敬业福 | 来源:发表于2016-08-05 16:53 被阅读1174次

转载请标明出处:http://blog.csdn.net/wu_wxc/article/details/51836297 本文出自【吴孝城的CSDN博客】

Eclipse创建jsp后报错Multiple annotations found at this line:- The superclass “javax.servlet.http.HttpServlet” was not found on the JavaBuild Path- The superclass “javax.servlet.http.HttpServlet” was not found on the JavaBuild Path


这里写图片描述

是因为缺少servlet-api.jar右击项目文件,选择Build Path–>Configure Build Path…–>Libraries如果没有Apache Tomcat,就点击Add Library–>Server Runtime–>Next–>选择Apache–>Finish,刷新项目看看错误是否消失。

如果有Apache Tomcat就点击Add Library…–>User Library–>Next–>User Libraries–>New…–>名字随便写–>ok–>Add External JARs…–>找到你Apache安装路径下的lib目录,选择servlet-api.jar–打开–>ok–>Finish–>ok,好了,问题解决 这里写图片描述

相关文章

  • Jsp页面报错The superclass "java

    转载请标明出处:http://blog.csdn.net/wu_wxc/article/details/51836...

  • JavaWeb:报错信息The superclass "java

    JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.Htt...

  • web工程jsp文件报错:The superclass java

    解决方案:https://www.cnblogs.com/achengmu/p/8082457.html如果在Se...

  • 第三课 jsp学习 1

    JSP JSP——Java Server Page:Java服务端页面,在html页面中编写Java代码的页面。 ...

  • JSP

    JSP JSP——Java Server Page:Java服务端页面,在html页面中编写Java代码的页面。 ...

  • JSP

    JSP JSP——Java Server Page:Java服务端页面,在html页面中编写Java代码的页面。 ...

  • 05_JSP&EL&JSTL&MVC

    JSP 1.jsp介绍 jsp全称Java server Pages , java的服务页面. 。既可以写java...

  • Spring Boot添加JSP

    添加依赖 配置支持JSP 编写JSPController.java 编写JSP页面 创建hello.jsp页面 浏...

  • JavaWeb随心笔记(2)

    JSP 相关技术 JSP 是在 HTML 页面中嵌入 Java 代码。HTML 负责页面的静态部分, Java 代...

  • jsp

    jsp就是:Java Server Page,在html页面中编写Java代码的页面 运行原理:jsp文件继承Ht...

网友评论

      本文标题:Jsp页面报错The superclass "java

      本文链接:https://www.haomeiwen.com/subject/oaohsttx.html