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

原因:

 创建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)

上一篇:cookie的使用


下一篇:用servlet进行用户名和密码校验