問題描述
用Eclipse進行Java web開發時,JSP文件出現這樣的錯誤:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。
解決辦法
右鍵項目-Build Path-Configure Build Path-Libraries-Add Library,選擇Server Runtime,選擇tomcat服務器,finish
用Eclipse進行Java web開發時,JSP文件出現這樣的錯誤:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。
右鍵項目-Build Path-Configure Build Path-Libraries-Add Library,選擇Server Runtime,選擇tomcat服務器,finish