1. 程式人生 > >Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun

Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun

建了一個簡單web專案,但是專案出了一個Description Resource Path Location Type

Description Resource Path Location Type
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path index.jsp    /strutsdemo/WebContent    line 1    JSP Problem

雖然專案可以正常執行,不過對於有強迫症的我來說,想將紅叉的問題解決掉。

解決方案:

選中專案名稱strutsdemo,右鍵選中Build Path  --> Configure Build Path...

根據自己需要設定對應的server runtime 環境

專案報的異常解決

如有錯誤,請指正.共同進步^-^